- Update VERSION_CODE in
gradle.properties - Update VERSION_NAME in
gradle.properties
- Create a new branch called
release/X.Y.Z git checkout -b release/X.Y.Z- Change the version in
gradle.propertiesto your desired release version (seeUpdate Version) git commit -am "Create release X.Y.Z."(where X.Y.Z is the new version)git tag -a X.Y.Z -m "Version X.Y.Z"(where X.Y.Z is the new version)- Upgrade to next version by changing version in
gradle.properties git commit -am "Prepare snapshot X.Y.Z-SNAPSHOT"git push && git push --tags- Create a PR to merge the new branch into
master - The CI pipeline will recognize the tag and upload, close and promote the artifacts automatically, and generate changelog automatically
- Current VERSION_NAME in
gradle.properties= 1.3.0 git checkout -b release/1.3.1- Change VERSION_NAME = 1.3.1 (next higher version)
- Update CHANGELOG.md
git commit -am "Create release 1.3.1git tag -a 1.3.1 -m "Version 1.3.1"git push && git push --tags- Change VERSION_NAME = 1.3.2 (next higher version)
git commit -am "Prepare snapshot 1.3.2-SNAPSHOT"git push && git push --tags- Merging PR master will create a snapshot release 1.3.2-SNAPSHOT and tag push will create stable release 1.3.1