To publish you need to do the following:
- Check out
main
and update it:git checkout main && git pull origin main
- Update the version in
gradle.properties
to a non-SNAPSHOT
version. - Update the version in the readme setup docs.
- Run checks:
./gradlew check publishPlugins --validate-only
- Commit with the message "Prepare for release X.Y.Z.":
git commit -am "Prepare for release X.Y.Z."
- Push:
git push origin main
- Create a new release: https://github.com/Hinge/project-accessors/releases/new
- Create new tag version:
X.Y.Z
- Release title:
X.Y.Z
- Description: Automatically generate the notes and describe the highlights above.
- Create new tag version:
- Check the publish workflow.
- Update the version in
gradle.properties
to the next-SNAPSHOT
version- You get the next version by incrementing the minor version and adding
-SNAPSHOT
to the end. - For example,
1.2.3
would become1.3.0-SNAPSHOT
.
- You get the next version by incrementing the minor version and adding
- Commit with the message "Prepare for next development iteration":
git commit -am "Prepare for next development iteration"
- Push:
git push origin main