Skip to content

Commit

Permalink
Add script for change version and tag it for release (#56)
Browse files Browse the repository at this point in the history
Signed-off-by: David Kornel <[email protected]>
  • Loading branch information
kornys authored May 9, 2024
1 parent 807ec13 commit 95c54ec
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/scripts/prepare-tag-release.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/usr/bin/env bash

# Script change version and run build
# then adds changes and do a release commit
# then creates tag with version specified by argument
# user must then push tags using `git push --tags` and do a release in github

TAG=$1
echo "Tagging version to ${TAG}"

mvn versions:set -DnewVersion=${TAG}
mvn clean install
git add "."
git diff --staged --quiet || git commit -m "Release ${TAG}"
git tag -a ${TAG} -m "${TAG}"

0 comments on commit 95c54ec

Please sign in to comment.