From 53f1c483064380414964470268c9ff9c3d9590f4 Mon Sep 17 00:00:00 2001 From: Philipp Meyerhoefer Date: Sat, 20 Jul 2019 08:51:03 +0100 Subject: [PATCH] only run publish goal if a sonatype user is set --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index e20d06c4..641e852d 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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: