GitHub Actions Multi-Environment Promotion
Dev to staging to production promotion with manual approval gates, environment protection rules, and deployment history via GitHub releases.
Dev → Staging → Production Promotion Pipeline
A structured GitHub Actions workflow for promoting builds through multiple environments with manual approval gates at each stage, environment protection rules, and deployment history tracked via GitHub releases.
What's Included
- Automated deploy to dev on every push to main
- Manual approval gate before promoting to staging
- Second approval gate with required reviewer for production
- GitHub Environment protection rules configuration
- Deployment history tracked via GitHub releases with auto-generated changelog
What You Get
promote.yml— promotion workflow with all three environments- GitHub Environment setup guide (protection rules, reviewers)
- Example deployment scripts for each environment tier
README.md— environment configuration and approval flow docs
Requirements
- GitHub repository with Actions and Environments enabled
- At least two GitHub users for required reviewers on production gate
- Deployment target credentials (ECS, Kubernetes, or custom hook)