🔧 GitHub Actions Templates
Reusable, production-ready GitHub Actions workflow templates for common CI/CD patterns.
Copy into your .github/workflows/ and go. Updated over 5 years as Actions evolved.
Copy the workflow file to .github/workflows/
Adjust secrets/variables as needed
Push and watch it run
Template
Stack
Features
node-ci.yml
Node.js
Matrix, caching, lint + test
python-ci.yml
Python
Matrix, pip caching, pytest
java-maven-ci.yml
Java/Maven
Matrix, Maven caching, JDK 11/17
elixir-ci.yml
Elixir
Matrix, PostgreSQL service, mix caching
docker-build.yml
Docker
Layer caching, conditional push
Template
Target
Auth
deploy-aws-ecs.yml
AWS ECS
OIDC
docker-publish-ghcr.yml
GitHub Container Registry
GITHUB_TOKEN
Template
Purpose
Features
codeql-analysis.yml
Code scanning
Multi-language security analysis
dependabot.yml
Dependency updates
Automated PR creation
Template
Purpose
Features
stale-issues.yml
Issue management
Auto-close stale issues/PRs
auto-label-pr.yml
PR labeling
Auto-label PRs by changed files
changelog-generator.yml
Release automation
Generate changelogs from commits
scheduled-backup.yml
Data backup
Automated backups to cloud storage
Template
Purpose
Features
build-and-test.yml
Multi-language CI
Reusable build/test for Node/Python/Java
docker-build-push.yml
Container builds
Multi-platform Docker builds with caching
deploy-environment.yml
Environment deployment
Deployments with rollback and health checks
Template
Purpose
Features
setup-project/
Project setup
Language runtime + dependency setup
notify-slack/
Notifications
Flexible Slack notifications
version-bump/
Version management
Semantic versioning from conventional commits
Each template includes:
Minimal required secrets
Appropriate caching strategies
Matrix builds where applicable
OIDC authentication where possible
Clear documentation in comments
Found a bug or want to add a template? Please open an issue or submit a pull request.
MIT