From 3adfdd99636e596737b2ff4e3855ba6cdcd07b0c Mon Sep 17 00:00:00 2001 From: Puneet Behl Date: Tue, 7 Apr 2020 00:43:12 +0530 Subject: [PATCH] Updated travis-publish.sh to not execute `publish` task when there is tag present. --- travis-publish.sh | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/travis-publish.sh b/travis-publish.sh index 207acbe3..dcdd7888 100755 --- a/travis-publish.sh +++ b/travis-publish.sh @@ -15,14 +15,8 @@ if [[ $TRAVIS_REPO_SLUG == "grails/gorm-graphql" && $TRAVIS_PULL_REQUEST == 'fal export GRADLE_OPTS="-Xmx1500m -Dfile.encoding=UTF-8" if [[ $TRAVIS_TAG =~ ^v[[:digit:]] ]]; then + ./gradlew bintrayUpload --no-daemon || EXIT_STATUS=$? - if [[ $EXIT_STATUS -eq 0 ]]; then - ./gradlew publish --no-daemon || EXIT_STATUS=$? - fi - - if [[ $EXIT_STATUS -eq 0 ]]; then - ./gradlew bintrayUpload --no-daemon || EXIT_STATUS=$? - fi elif [[ $TRAVIS_PULL_REQUEST == 'false' && $TRAVIS_BRANCH =~ ^master|[123]\..\.x$ ]]; then # for snapshots only to repo.grails.org ./gradlew publish || EXIT_STATUS=$?