- Ensure you are on the
main
branch and have pulled the latest changes:git checkout main git pull origin main
- Remove
-SNAPSHOT
from theversion
inlibrary/build.gradle.kts
. - Commit the change:
git commit -m "Prepare next release" .
- Tag the release version and push it:
git tag x.y.z git push origin x.y.z
- This will kick off a GitHub action (
release.yml
) to release the library to a Sonatype staging repository. 📤 - The action will also draft a new release on GitHub.
- Head to Sonatype and sign in (credentials are in the Bitwarden Open Source Collection).
- Search for the staged repo, click Close.
- After it's successfully Closed, click Release and check "Drop after release".
- After step 4 is complete, head to the GitHub release page and edit the new release, and publish it. 🎉
- Increment the minor (Major.Minor.Patch) version in
library/build.gradle.kts
and add-SNAPSHOT
to indicate the next development version. - Commit this change:
git commit -m "Next development version" .
- Push your changes and celebrate a job well done!