-
Notifications
You must be signed in to change notification settings - Fork 41
4.1 Release
Joseph Zhao edited this page Jun 16, 2020
·
1 revision
GovCMS repositories use git-flow model to manage releases.
Please refer to https://danielkummer.github.io/git-flow-cheatsheet/ for step-by-step release commands.
- Make sure that you have the latest versions of
master
anddevelop
branches. - Checkout
develop
branch. - Start release:
git flow release start 1.2.3
, where1.2.3
is a next release (see Version Number below). - Push created
release/1.2.3
branch to remote:git flow release publish 1.2.3
- Once CI passes (if any), finish the release:
git flow release finish 1.2.3
- Push
develop
andmaster
to remote.
- Latest commit to
master
should contain a tag and should exist indevelop
. If it does not - the release was done incorrectly and should be repeated from the beginning. - Always make sure that there is a remote
release/1.2.3
branch created. - At any moment in time there should not be any commits in
master
that are not tagged with a version.
Release versions are numbered according to Semantic Versioning. Given a version number X.Y.Z:
- X = Major release version. No leading zeroes.
- Y = Minor Release version. No leading zeroes.
- Z = Hotfix/patch version. No leading zeroes.