Skip to content

Commit

Permalink
only run publish goal if a sonatype user is set
Browse files Browse the repository at this point in the history
  • Loading branch information
barkhorn committed Jul 20, 2019
1 parent b0968fe commit 53f1c48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ cache:
# - sudo chmod +x /usr/local/bin/sbt

after_success:
- '[[ $TRAVIS_BRANCH == "master" ]] && [[ $TRAVIS_JDK_VERSION == "openjdk11" ]] && { sbt ++$TRAVIS_SCALA_VERSION publish; };'
- '[[ $TRAVIS_BRANCH == "master" ]] && [[ $TRAVIS_JDK_VERSION == "openjdk11" ]] && [[ $SONATYPE_USERNAME != "" ]] && { sbt ++$TRAVIS_SCALA_VERSION publish; };'

env:
global:
Expand Down

0 comments on commit 53f1c48

Please sign in to comment.