| name | deploy |
| description | Push main to deploy branch with pre-flight checks. Does NOT run deploy.sh — that happens on the deploy machine. |
Deploy
Push new commits from main to deploy branch.
Process
-
Pre-flight:
- Ensure on
main branch (switch if needed)
git pull to get latest
- Verify
main is ahead of deploy (if not, nothing to deploy)
- Run
npm run check and npm run build
-
Summarize:
- Show commits going from
deploy to main
- Note current deploy HEAD (rollback point)
-
Confirm: Ask user before pushing.
-
Push:
git checkout deploy && git merge --ff-only main && git push
- Switch back to
main
-
Remind: Tell user to run deploy.sh on the deploy machine, or that it will pick up changes on next restart.