Skip to content

Commit

Permalink
deploy 2.x to sonatype snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
victornoel committed Mar 25, 2018
1 parent 3db552b commit 31ae9ca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions travis/deploy-to-sonatype.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash

# Only invoke the deployment to Sonatype when it's not a PR and only for master
if [ "$TRAVIS_PULL_REQUEST" == "false" ] && [ "$TRAVIS_BRANCH" == "master" ]; then
# Only invoke the deployment to Sonatype when it's not a PR and only for 2.x branch
if [ "$TRAVIS_PULL_REQUEST" == "false" ] && ([ "$TRAVIS_BRANCH" == "2.x" ]; then
mvn deploy --settings travis/settings.xml
echo -e "Successfully deployed SNAPSHOT artifacts to Sonatype under Travis job ${TRAVIS_JOB_NUMBER}"
fi

0 comments on commit 31ae9ca

Please sign in to comment.