toolbox · service

GitHub Actions

The CI that builds and scrubs the repo on every push.

What it is

GitHub’s workflow runner. YAML files in .github/workflows/ describe jobs that run on GitHub’s machines when something happens: a push, a pull request or a manual dispatch.

How it works

  • A workflow has a trigger (on:), one or more jobs, and each job has steps.
  • A runner is the machine (ubuntu-latest here). Steps can run shell commands or actions.
  • Secrets are encrypted values stored on the repo and exposed to steps as ${{ secrets.NAME }}.
  • Path filters (paths:) decide whether a push triggers a workflow at all.

In this project

  • .github/workflows/ci.yml runs npm run check and the secret scrub on every push and PR.
  • .github/workflows/deploy-games.yml deploys only when sites/games/** changes (or manually), and skips its deploy step until the Cloudflare secrets exist.
  • The other six sites deploy through Cloudflare’s own GitHub integration, not Actions.

Gotchas

  • Secrets cannot be used in a job-level if:. Put the check on the step, with the value in env.
  • Older actions targeting Node 20 now warn and run on Node 24. The run still succeeds, but the actions should be bumped.
  • A skipped step is not a failure. A guarded deploy shows green when it does nothing.