Skip to content

Commit

Permalink
Updated travis-publish.sh
Browse files Browse the repository at this point in the history
to not execute `publish` task when there is tag present.
  • Loading branch information
puneetbehl committed Apr 6, 2020
1 parent b14ea22 commit 3adfdd9
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions travis-publish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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=$?
Expand Down

0 comments on commit 3adfdd9

Please sign in to comment.