- On the
mainbranch, dogit pull - Create a new chore branch and bump the maven project version--push the changes (this can be done in a feature branch too when working on a new change and that release will contain only that feature/change)
- Open a PR from the newly created branch
- Merge the PR once it is ready
- On the
mainbranch, dogit pullagain - Create a new tag:
git tag release/xxx.yyy.zzz, wherexxxis the major version,yyyis the minor version, andzzzis the patch version. See semantic versioning for more info. - Push the new tag
git push --tags