Update the release-to-central.yml workflow to:
- Accept a version input via workflow_dispatch so the release version can be specified from the GitHub UI
- Validate that the provided version is not lower than the current version in pom.xml to prevent deploying versions that could already be in maven central.
- Automatically run mvn versions:set to update pom.xml to the release version
- Commit the version change and create a git tag
- Build, sign, and publish to Maven Central (existing steps)
- Automatically bump pom.xml to the next patch SNAPSHOT version and commit
- Push all commits and the tag to main
Update the
release-to-central.ymlworkflow to: