Skip to content

Commit 3a47710

Browse files
authored
check TRAVIS_TAG fix
1 parent a57cd59 commit 3a47710

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@ script: ./mvnw clean verify
1919

2020
after_success:
2121
# push to maven repo
22-
- if [ $SONATYPE_USERNAME ] && [ -z $TRAVIS_TAG ] && [ "$TRAVIS_PULL_REQUEST" == "false" ]; then
22+
- if [ $SONATYPE_USERNAME ] && [ -n $TRAVIS_TAG ] && [ "$TRAVIS_PULL_REQUEST" == "false" ]; then
2323
if [ "$TRAVIS_BRANCH" = "master" ]; then
2424
mvn clean deploy -DskipTests=true -B -U -P release --settings .travis.settings.xml;
2525
echo "Finished mvn clean deploy for $TRAVIS_BRANCH";
2626
elif ([[ "$TRAVIS_BRANCH" =~ ^[0-9]+\.[0-9]+\.x$ ]]) ; then
2727
mvn clean deploy --settings .travis.settings.xml;
2828
echo "Finished mvn clean deploy for $TRAVIS_BRANCH";
2929
fi;
30-
fi;
30+
fi;

0 commit comments

Comments
 (0)