-
Run the script
release.sh
with release name in format[library]-v[version]
:./release.sh gears-compose-v1.0.0
-
The script will ask you if you want to push the release branch and create a release tag.
-
Ensure
CHANGELOG.md
looks good and is ready to be published. Make the necessary edits. -
Type "yes" to the console if everything is okay.
-
Click the link printed in the console to create a Pull Request for release branch.
-
Merge the Pull Request as soon as the "Check" workflow succeeds.
Release tag push triggers a GitHub Actions workflow, which publishes the release artifacts to Maven Central and creates a GitHub release.
To prepare the release manually, follow the steps the script does:
-
Ensure the repository is up to date, and the main branch is checked out.
-
Create the release branch with the name
release/[library]-v[version]
-
Update the version in
gradle.properties
,build.gradle.kts
andREADME.md
("Usage" section). -
Update the
CHANGELOG.md
:- Replace
Unreleased
section with the release version - Add a link to the diff between the previous and the new version (if possible)
- Add a new empty
Unreleased
section on the top
- Replace
-
Commit the changes, create a tag on the commit, and push it to the remote repository. The tag should follow the format
[library]-v[version]
. -
Create a Pull Request for the release branch and merge it.