Prompt
I'm building a GitHub-based delivery pipeline — what are the recommended stages?
Latest observation
Oct 19, 2026
OpenAI APIWeb search: off
A solid GitHub-based delivery pipeline usually follows these stages:
-
Plan / Issue
- Define work in GitHub Issues, Projects, or milestones.
- Capture requirements, acceptance criteria, and release scope.
-
Code / Branch
- Develop in feature branches or trunk-based flow.
- Use pull requests for all changes.
-
Validate on PR
- Run automated checks in GitHub Actions:
- linting
- unit tests
- security/dependency scans
- build/package verification
- Require branch protection and mandatory reviews.
- Run automated checks in GitHub Actions:
-
Merge
- Merge to the main integration branch after checks pass.
- Keep this branch always releasable.
-
Build Artifact
- Create versioned, immutable artifacts from the merge.
- Store them in GitHub Releases, package registries, or artifact storage.
-
Deploy to Dev / Preview
- Automatically deploy to a development or preview environment.
- Useful for quick validation and PR previews.
-
Test in QA / Staging
- Run integration, end-to-end, and regression tests.
- Validate performance, security, and release readiness.
-
Approve / Gate
- Add manual approval if needed for higher environments.
- Use environment protection rules in GitHub.
-
Deploy to Production
- Promote the tested artifact to production.
- Prefer the same artifact that passed staging, not a rebuilt one.
-
Monitor / Operate
- Observe logs, metrics, traces, and alerts.
- Track errors, latency, and deployment health.
- Feedback / Rollback
- Feed incidents and usage data back into planning.
- Support fast rollback or rollback-forward strategies.
A practical GitHub Actions flow often looks like:
PR checks → merge to main → build artifact → deploy preview/dev → test/stage → approve → production deploy → monitor
If you want, I can also give you:
- a minimal pipeline for small teams
- a more enterprise-style pipeline with approvals
- or a sample GitHub Actions workflow layout