make preview and release tag based

This commit is contained in:
Jonathan Shook
2023-01-23 21:18:53 -06:00
parent 027fc4a895
commit 0ae3bd0852
7 changed files with 98 additions and 11 deletions

10
scripts/tag-release-build Executable file
View File

@@ -0,0 +1,10 @@
#!/bin/bash
cd mvn-defaults
set -x
CURRENT_VERSION=$(mvn help:evaluate -Dexpression=revision -q -DforceStdout)
RELEASE_VERSION=${CURRENT_VERSION%%-SNAPSHOT}
RELEASE_TAG="${RELEASE_VERSION}-release"
printf "release tag: '%s'\n" "${RELEASE_TAG}"
git tag "${RELEASE_TAG}"