- Change the version in
gradle.properties
to a non-SNAPSHOT version. - Update the
CHANGELOG.md
for the impending release. - Update the
README.md
with the new version. git commit -am "Prepare for 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)- Update the
gradle.properties
to the next SNAPSHOT version. git commit -am "Prepare next development version."
git push && git push --tags
- Create a new release in the releases tab on GitHub
- Wait for the publish-maven-central.yml action to complete.
- Visit Sonatype Nexus and promote the artifact.
The deploy-snapshot.yml workflow runs on every
push to the main branch as long as the commit message does not contain Prepare for release
. This
workflow calls Gradle to publish to the Sonatype snapshot repository.
For actual releases, there is a separate publish-maven-central.yml workflow which runs after a new release is created in the GitHub UI. This will call Gradle on the tagged release commit and upload to the staging repository. After that completes, you will need to go and promote the artifacts to production.