Custom GitHub actions used by the Grails team.
To release a new version, you need to create a new tag with the version number (prefixed with v). This can be done via the GitHub Releases page or via the command line.
git tag v3.0
git push origin v3.0
To make major version references work, create a new branch with the major version number (if it does not already exist).
git checkout -b v3 v3.0
git push origin v3
When a new minor version is released, update the major version branch to point to the new release tag.
git checkout v3
git reset --hard v3.1
git push --force origin v3