Generate GitHub Actions workflows for build, test, deploy with environment configs and secrets management
Continuous integration and deployment pipelines for mobile (Android/iOS), web (Next.js), and backend (Firebase). GitHub Actions first. Every project ships with automated build, test, and deploy from day one.
Before starting, gather project context silently:
PORTFOLIO.md if it exists in the project root or parent directories for product/team contextcat package.json 2>/dev/null || cat build.gradle.kts 2>/dev/null || cat Podfile 2>/dev/null to detect stackgit log --oneline -5 2>/dev/null for recent changesls src/ app/ lib/ functions/ 2>/dev/null to understand project structure| Project | Pipeline |
|---|
| Next.js + Firebase Hosting | Build → Test → Export → Deploy to Firebase |
| Next.js + Vercel | Push-to-deploy (Vercel handles CI) |
| Android app | Build → Lint → Test → Assemble → Firebase App Distribution / Play Store |
| iOS app | Build → Test → Archive → TestFlight / App Store (Fastlane) |
| Firebase Cloud Functions | Lint → Test → Deploy Functions |
| Monorepo (web + functions) | Matrix build: web and functions in parallel |
| Full stack (mobile + web + backend) | Separate workflows per platform, shared test gate |
main — production, always deployable
feature/* — feature branches, PR into main
hotfix/* — urgent fixes, PR into main
Environments:
PR preview → deploy to preview URL (Vercel) or staging Firebase site
main → auto-deploy to production
tags (v1.0.0) → release builds (mobile)