@@ -9,20 +9,25 @@ Releasing
99
10101 . Create a new branch called ` release/X.Y.Z `
11112 . ` git checkout -b release/X.Y.Z `
12- 3 . Change the version to your desired release version (see ` Update Version ` )
13- 4 . ` git commit -am "Prepare release X.Y.Z." ` (where X.Y.Z is the new version)
12+ 3 . Change the version in ` gradle.properties ` to your desired release version (see ` Update Version ` )
13+ 4 . ` git commit -am "Create release X.Y.Z." ` (where X.Y.Z is the new version)
14145 . ` git tag -a X.Y.Z -m "Version X.Y.Z" ` (where X.Y.Z is the new version)
15- 6 . ` git push && git push --tags `
16- 7 . The CI pipeline will recognize the tag and upload, close and promote the artifacts, and generate changelog automatically
17- 8 . Create a PR to merge the new branch into ` main `
18- 9 . The CI pipeline will trigger a snapshot workflow and upload the artifact.
15+ 6 . Upgrade to next version by changing version in ` gradle.properties `
16+ 7 . ` git commit -am "Prepare snapshot X.Y.Z-SNAPSHOT" `
17+ 8 . ` git push && git push --tags `
18+ 9 . Create a PR to merge the new branch into ` master `
19+ 10 . The CI pipeline will recognize the tag and upload, close and promote the artifacts automatically, and generate changelog automatically
1920
2021Example (stable release)
2122========
22- 1 . Current version is 1.3.0
23+ 1 . Current VERSION_NAME in ` gradle.properties ` = 1.3.0
23242 . ` git checkout -b release/1.3.1 `
24- 3 . Change version to 1.3.1 (next higher version, see ` Update Version ` )
25- 4 . ` git commit -am "Prepare release 1.3.1" `
26- 5 . ` git tag -a 1.3.1 -m "Version 1.3.1" `
27- 6 . ` git push && git push --tags ` . This tag push will create stable release 1.3.1 with auto-generated changelog
28- 8 . Create a PR to merge the new branch into ` main ` . Merging PR main will create a snapshot release 1.3.1-SNAPSHOT
25+ 3 . Change VERSION_NAME = 1.3.1 (next higher version)
26+ 4 . Update CHANGELOG.md
27+ 5 . ` git commit -am "Create release 1.3.1 `
28+ 6 . ` git tag -a 1.3.1 -m "Version 1.3.1" `
29+ 6 . ` git push && git push --tags `
30+ 7 . Change VERSION_NAME = 1.3.2 (next higher version)
31+ 8 . ` git commit -am "Prepare snapshot 1.3.2-SNAPSHOT" `
32+ 9 . ` git push && git push --tags `
33+ 10 . Merging PR master will create a snapshot release 1.3.2-SNAPSHOT and tag push will create stable release 1.3.1
0 commit comments