-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#25 tags from develop branch should be marked as beta
- Loading branch information
Showing
1 changed file
with
8 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |