GitHub Actions for Mere Mortals
Every time you push code, someone should run the tests, check the style, and build the docs — before the bug reaches production. GitHub Actions is that someone: automation that lives in your repo and runs on GitHub's computers whenever something happens.
No DevOps degree required. Ideas first, YAML second.
What this guide covers
- What CI/CD is — and why "it works on my machine" isn't a deployment strategy
- Your first workflow — a real one, in 20 lines
- Triggers — what starts a workflow (push, PR, schedule, manual)
- Jobs, steps, and runners — the anatomy of a workflow
- The Marketplace — borrowing other people's automation safely
- Matrix builds — testing every Python/OS combo at once
- Secrets — passwords and tokens without committing them
- Artifacts and caching — keeping build outputs, skipping repeated work
- Pull request workflows — CI as a gatekeeper
- Deployments — shipping to Pages and beyond, with approvals
- Debugging — reading logs like a detective
- Troubleshooting — the failures you'll actually hit
What it doesn't cover
Self-hosted runners in depth, writing custom JavaScript actions from scratch, or enterprise GitHub Server administration. This is the 90% use case: hosted runners, YAML workflows, shipping software.
How to use this guide
Every YAML example was parsed and validated before shipping — the syntax is real. Check: blocks confirm what you should see. Careful: marks anything involving secrets, deployments, or spending CI minutes. A free GitHub account includes generous Actions minutes; private repos on the free plan get 2,000 minutes/month.
You need a GitHub repo to follow along hands-on — any repo works, even an empty one.
Chapters
- What CI/CD Is
- Your First Workflow
- Triggers
- Jobs, Steps, and Runners
- The Marketplace
- Matrix Builds
- Secrets
- Artifacts and Caching
- Pull Request Workflows
- Deployments
- Debugging
- Troubleshooting
- Glossary
Written to the nine-point writing standard shared by every guide in this series.