This directory contains GitHub-specific configuration files for the LifeBalance project.
GitHub Actions workflow for automated deployment to Firebase Hosting.
Triggers:
- Every push to
main→ Type checks, builds, and deploys - Every pull request to
main→ Type checks and builds (validation only)
Steps:
- Type check with TypeScript (
npx tsc --noEmit) - Build production bundle (
npm run build) - Deploy to Firebase Hosting (pushes only)
Comprehensive setup guide with manual and automated options.
quick-setup.sh ⚡ Recommended
One-command automated setup. Run on your local machine:
bash .github/quick-setup.shDoes everything automatically:
- Adds all environment secrets to GitHub
- Creates Firebase service account
- Verifies authentication
Alternative script for just setting up GitHub secrets.
On your local machine (not in Codespaces), run:
bash .github/quick-setup.shThen push the workflow:
git add .github/
git commit -m "ci: Add GitHub Actions deployment workflow"
git push origin mainMonitor at: https://github.com/OPS-PIvers/LifeBalance/actions
The workflow needs these GitHub repository secrets:
Firebase Configuration (from .env.local):
VITE_FIREBASE_API_KEYVITE_FIREBASE_AUTH_DOMAINVITE_FIREBASE_PROJECT_IDVITE_FIREBASE_STORAGE_BUCKETVITE_FIREBASE_MESSAGING_SENDER_IDVITE_FIREBASE_APP_IDVITE_FIREBASE_MEASUREMENT_IDVITE_GEMINI_API_KEY
Deployment:
FIREBASE_SERVICE_ACCOUNT(fromfirebase login:ci)
After deployment: https://lifebalance-26080.web.app
See DEPLOYMENT_SETUP.md for common issues and solutions.