GitHub Actions

GitHub Actions is where most static sites on this site are built, tested and deployed from, so its guides are about the pipeline itself rather than any one generator: caching dependencies and generator output between runs, fanning out over many sites with matrix builds, sharing one pipeline across repositories with reusable workflows, cancelling superseded runs, and pinning third-party actions so a moved tag cannot change what runs with your deploy credentials.

Every guide reports CI minutes and wall-clock time before and after, because a pipeline change that makes builds safer but twice as slow tends to get reverted.

Sequence of jobs in a typical GitHub Actions workflow for a static site A push triggers the workflow. The build job restores caches and builds the site. The test job checks the output. The preview job deploys and comments the URL. On merge, the deploy job runs with short-lived credentials. A pull request through a static site pipeline Push pull request Build cached Test + preview checks, URL Deploy on merge, OIDC restore cache, build artifact to tests and preview checks and preview comment on main: deploy
Each arrow corresponds to one or more guides below.

Choosing the Right Static Site Generator for Production

  • Deploying Jekyll with GitHub ActionsHow-toReplace the classic GitHub Pages Jekyll builder with a GitHub Actions workflow: any plugin, any Jekyll version, caching, previews and Pages deployment.
  • Parallel Hugo Builds Across CI JobsHow-toSplit a very large Hugo site into segments built in parallel CI jobs, merge the output safely, and measure when parallel builds beat a single larger runner.
Number of GitHub Actions guides of each kind Vertical bars: How-tos 18, Fixes 1, Comparisons 0 and Concepts 0. GitHub Actions guides by kind 18 How-tos 1 Fixes 0 Comparisons 0 Concepts
19 guides use GitHub Actions in depth; each is listed below under the section it belongs to.

Core Web Vitals Optimization for SSGs

Production-Ready Deployment & CI/CD for SSGs

Topics with the most GitHub Actions guides Horizontal bars, largest first: GitHub Actions for Automated SSG Builds 9, Preview Environments for Pull Requests 2, Jekyll Plugin Ecosystem 1, Performance Budgets and Lighthouse CI 1, Incremental Builds and Build Caching for SSGs 1 and Security Headers and Hardening for Static Sites 1. Where GitHub Actions comes up GitHub Actions for Automated SSG Builds 9 Preview Environments for Pull Requests 2 Jekyll Plugin Ecosystem 1 Performance Budgets and Lighthouse CI 1 Incremental Builds and Build Caching 1 Security Headers and Hardening 1
Topic pages give the wider context for each group; the numbers count only guides that use this tool in depth.

Often used with GitHub Actions

  • GitHub Pages3 shared guidesPublishing from Actions and custom domains.
  • Hugo3 shared guidesBuild time at scale, image caches, modules and multilingual sites.
  • Cloudflare2 shared guidesPages and Workers hosting, cache rules and edge functions.
  • Jekyll1 shared guidesPlugins, reproducible builds, upgrades and migration away.
  • Lighthouse1 shared guidesBudgets, Lighthouse CI and lab against field data.
  • Astro1 shared guidesIslands, content collections, astro:assets and deployment.