Step 1: Grasp Fundamentals
GitHub Actions automates workflows triggered by events like pushes or pull requests. Key concepts:
- Workflows: YAML files in
.github/workflows/ defining automation.
- Events: Triggers (e.g.,
push, pull_request).
- Jobs: Sets of steps running on runners (e.g.,
ubuntu-latest).
- Steps: Tasks using
run (shell commands) or uses (actions).
- Actions: Reusable units from Marketplace or custom.
- Runners: GitHub-hosted VMs (Linux, Windows, macOS).
Prerequisites
- GitHub account (free).
- Create a new public repository (Actions free for public repos).
Go to docs.github.com/en/actions and read 'Understanding GitHub Actions'.
Create a repo: https://github.com/new > Name it actions-learning > Public > Create.