web dev//deploy//CI/CD//GitHub Actions

GitHub Actions is GitHub's built-in CI/CD system. Workflow files live in `.github/workflows/` as YAML, and they run on GitHub's servers when triggered.


GitHub Actions is GitHub's built-in CI/CD system. Workflow files live in .github/workflows/ as YAML, and they run on GitHub's servers when triggered.

A workflow triggers on a push, a PR, a schedule or a manual dispatch; the most common trigger is on: push: branches: [main].

Each workflow has jobs, and each job has steps. Steps run shell commands or use pre-built actions from the marketplace.

A typical web deploy runs as a chain of steps.

1git push2GitHub Actions triggers3npm ci4npm run buildgenerates dist/5Deploy dist/ and functions/ to Cloudflare Pages

The deploy pushes code only (frontend and API) and does not touch the database. D1 migrations are a separate manual step through Wrangler.

The free tier gives 2000 minutes a month for private repos, and unlimited minutes for public ones.

Secrets (API keys, tokens) are stored in the repo settings and are available as ${{ secrets.NAME }} in workflows.