-
Switch to a release branch.
-
Run the script
release.sh:./release.sh
-
The script will ask you if you want to push the changes and create a release tag.
-
Ensure
CHANGELOG.mdlooks good and is ready to be published. Delete sections that don't contain changes. -
Type "yes" to the console if everything is okay. Tag push triggers a GitHub Actions workflow, which publishes the release artifacts to Maven Central and creates a GitHub release.
-
Click the link displayed in the console to create a Pull Request for release branch.
-
Merge the Pull Request as soon as the "Check" workflow succeeds. It is recommended to use fast-forward merge to merge release branches.
To prepare a release manually, follow the steps the script does:
-
Ensure the repository is up to date, and the release branch is checked out.
-
Update the version in
gradle.propertiesandREADME.md("Usage" section) using the current date as a version. -
Update the
CHANGELOG.md:- Replace
Unreleasedsection with the release version - Add a link to the diff between the previous and the new version
- Add a new empty
Unreleasedsection on the top
- Replace
-
Commit the changes, create a tag on the latest commit, and push it to the remote repository. The tag should follow the format
[version]. -
Merge