-
Notifications
You must be signed in to change notification settings - Fork 0
Release Guide
David Zhu edited this page Mar 26, 2025
·
1 revision
This document outlines our standard workflow for creating stable releases from the main branch.
-
main- Active development (always deployable) -
release/*- Temporary branches for release preparation - Tags mark production releases (e.g.,
v1.0.0)
git checkout main
git pull
git checkout -b release/vX.Y.Z # Replace with your versionOn the release branch:
- Update version in all relevant files
- Verify CHANGELOG.md includes all changes
- Ensure CI tests pass
git checkout main
git merge --no-ff release/vX.Y.Z -m "Release vX.Y.Z"
git tag -a vX.Y.Z -m "Version vX.Y.Z"
git push origin main --tagsCI/CD should automatically deploy from the tag
For critical production fixes:
- Create branch from the production tag:
git checkout -b hotfix/vX.Y.Z vX.Y.Z
- Apply fixes and follow normal release process
- Keep release branches short-lived
- Never force-push to release branches
- Document every release in CHANGELOG.md
main: o---o---o-------o (merge release)
\ /
release: o---o
|
vX.Y.Z (tag)