Skip to content

Commit

Permalink
#25 tags from develop branch should be marked as beta
Browse files Browse the repository at this point in the history
  • Loading branch information
kasramp committed Apr 29, 2023
1 parent c5f6080 commit 661bc53
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions util/release.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
#!/bin/bash
set -ev

if [[ "$LAST_COMMIT" != *"maven-release-plugin"* ]];then
if [ "$LAST_COMMIT" != *"maven-release-plugin"* ]; then
git config --global user.email $EMAIL
git config --global user.name $USERNAME
git symbolic-ref HEAD refs/heads/develop
git symbolic-ref HEAD refs/heads/$(git branch --show-current)
git symbolic-ref HEAD
mvn -B clean release:clean release:prepare release:perform -Dusername=$USERNAME -Dpassword=$TOKEN -Darguments="-Dmaven.deploy.skip=true"
fi
if [ $(git branch --show-current) == "develop" ]; then
mvn -B clean release:clean release:prepare release:perform -Dusername=$USERNAME -Dpassword=$TOKEN -DtagNameFormat=${artifactId}-BETA-${version} -Darguments="-Dmaven.deploy.skip=true"
else
mvn -B clean release:clean release:prepare release:perform -Dusername=$USERNAME -Dpassword=$TOKEN -Darguments="-Dmaven.deploy.skip=true"
fi
fi

0 comments on commit 661bc53

Please sign in to comment.