Developer Tools
GitHub Actions Workflow Builder - CI/CD YAML Generator
Build GitHub Actions CI/CD workflows visually. Configure triggers, Node.js version, package manager, and pipeline steps, then get a ready-to-use .yml file.
Triggers
Pipeline steps
name: CI
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
ci:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Lint
run: npm run lint
- name: Test
run: npm run test
- name: Build
run: npm run buildWhat is GitHub Actions?
GitHub Actions is a CI/CD platform built into GitHub. Workflows are defined in YAML files
stored in .github/workflows/. Each workflow consists of one or more
jobs; each job runs on a runner (a virtual machine or container) and contains
a series of steps.
Key concepts
- Trigger (on:): what causes the workflow to run. Common triggers:
push,pull_request,schedule,workflow_dispatch(manual). - Runner: the machine that executes the job. GitHub provides
ubuntu-latest,windows-latest,macos-latest. - Step: a single task within a job. Steps can run shell commands (
run:) or use pre-built actions (uses:). - Action: a reusable unit of code. Find community actions at
github.com/marketplace. - Secrets: encrypted values stored in repository settings. Reference with
${ secrets.MY_SECRET }.
Minimal workflow example
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: echo "Hello, World!" Trigger types reference
| Trigger | Description | Common use case |
|---|---|---|
push | On every push to specified branches | Run tests on every commit |
pull_request | On PR open, synchronize, or close | CI checks before merging |
schedule | Cron-based schedule | Nightly builds, dependency audits |
workflow_dispatch | Manual trigger via UI or API | On-demand deployments |
release | On GitHub Release creation | Publish packages to npm/PyPI |
Secrets management
Store sensitive values (API keys, tokens, passwords) in Repository Settings -> Secrets and variables -> Actions. Reference them in workflows with
${{ secrets.MY_SECRET }}. Secrets are masked in logs; never print them
directly. Organization-level secrets can be shared across multiple repositories.
Popular marketplace actions
| Action | Purpose |
|---|---|
actions/checkout@v4 | Check out repository code |
actions/setup-node@v4 | Install Node.js |
actions/cache@v4 | Cache dependencies (npm, pip, etc.) |
docker/build-push-action@v5 | Build and push Docker images |
peaceiris/actions-gh-pages@v3 | Deploy to GitHub Pages |