Use this checklist to ensure your GitHub Actions deployment is set up correctly.
- Code is pushed to GitHub repository
- Repository has
mainbranch as default - All sensitive data is removed from code (no hardcoded secrets)
- Vercel account is connected to GitHub
- Project is linked to Vercel (
vercel linkcompleted) - Domain
colortech.co.zwis configured in Vercel - SSL certificate is active
- Production database is running (Neon/PostgreSQL)
- Database URL is accessible from Vercel
- Database migrations are up to date
- Seed data is prepared (optional)
Go to: https://github.com/YOUR_USERNAME/YOUR_REPO/settings/secrets/actions
-
VERCEL_TOKEN- Your Vercel authentication token -
VERCEL_ORG_ID- From.vercel/project.json -
VERCEL_PROJECT_ID- From.vercel/project.json -
DATABASE_URL- Production database connection string -
NEXTAUTH_URL-https://www.colortech.co.zw -
NEXTAUTH_SECRET- Secure random string (32+ characters) -
GOOGLE_CLIENT_ID- Google OAuth client ID -
GOOGLE_CLIENT_SECRET- Google OAuth client secret -
NEXT_PUBLIC_MAPS_PLATFORM_API_KEY- Google Maps API key
-
NEXTAUTH_URL_PREVIEW- Preview deployment URL pattern
- OAuth application is created in Google Cloud Console
- Authorized redirect URIs include:
-
https://www.colortech.co.zw/api/auth/callback/google -
https://*.vercel.app/api/auth/callback/google
-
- Client ID and secret are added to GitHub secrets
- Google Maps API key is generated
- API key has appropriate restrictions
- API key is added to GitHub secrets
In Vercel Dashboard → Project → Settings → Environment Variables:
-
DATABASE_URL -
NEXTAUTH_URL -
NEXTAUTH_SECRET -
GOOGLE_CLIENT_ID -
GOOGLE_CLIENT_SECRET -
NEXT_PUBLIC_MAPS_PLATFORM_API_KEY
- Same variables as production
-
NEXTAUTH_URLset to preview domain pattern
Ensure these workflow files exist in .github/workflows/:
-
ci.yml- Continuous Integration -
deploy.yml- Production Deployment -
preview.yml- Preview Deployments -
database-backup.yml- Database Backups
-
npm run buildsucceeds locally -
npm run startworks locally - Database connection works
- Authentication flow works
- Push a test commit to trigger CI
- All CI checks pass (lint, test, build)
- No errors in GitHub Actions logs
- Create a test pull request
- Preview deployment is created automatically
- Preview URL is commented on PR
- Preview site loads correctly
- Authentication works on preview
- Merge PR to main branch
- Production deployment triggers automatically
- Deployment completes successfully
- Production site loads at
https://www.colortech.co.zw - All features work correctly
- Database migrations applied successfully
- Homepage loads correctly
- Admin portal is accessible
- Google OAuth login works
- Content management functions work
- Blog posts display correctly
- Gallery items load
- Testimonials show properly
- FAQs are accessible
- Site loads quickly (< 3 seconds)
- Images are optimized
- No console errors
- Mobile responsiveness works
- Meta tags are present
- Sitemap is accessible
- Robots.txt is configured
- Analytics are tracking (if configured)
If deployment fails, check:
- All required secrets are set in GitHub
- Environment variables match in Vercel
- Database URL is correct and accessible
- Google OAuth redirect URIs are configured
- Domain DNS settings are correct
- Check GitHub Actions logs for specific errors
- Verify Vercel deployment logs
- Test database connection manually
- Validate environment variables
- Check external service configurations
- Enable email notifications for failed deployments
- Set up Slack/Discord webhooks (optional)
- Monitor workflow run history
- Enable deployment notifications
- Set up performance monitoring
- Configure error tracking
- Monitor database performance
- Set up backup verification
- Configure connection pooling
Once all items are checked:
- Document any custom configurations
- Share access credentials with team members
- Set up monitoring and alerting
- Plan regular maintenance schedule
Congratulations! Your ColorTech application is now deployed with professional CI/CD pipelines! 🚀
For ongoing maintenance, refer to:
GITHUB_ACTIONS_DEPLOYMENT_GUIDE.mdfor detailed instructions- GitHub Actions dashboard for deployment monitoring
- Vercel dashboard for performance metrics