Skip to content
This repository was archived by the owner on Mar 10, 2025. It is now read-only.

Commit 3adfdd9

Browse files
committed
Updated travis-publish.sh
to not execute `publish` task when there is tag present.
1 parent b14ea22 commit 3adfdd9

1 file changed

Lines changed: 1 addition & 7 deletions

File tree

travis-publish.sh

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,8 @@ if [[ $TRAVIS_REPO_SLUG == "grails/gorm-graphql" && $TRAVIS_PULL_REQUEST == 'fal
1515
export GRADLE_OPTS="-Xmx1500m -Dfile.encoding=UTF-8"
1616

1717
if [[ $TRAVIS_TAG =~ ^v[[:digit:]] ]]; then
18+
./gradlew bintrayUpload --no-daemon || EXIT_STATUS=$?
1819

19-
if [[ $EXIT_STATUS -eq 0 ]]; then
20-
./gradlew publish --no-daemon || EXIT_STATUS=$?
21-
fi
22-
23-
if [[ $EXIT_STATUS -eq 0 ]]; then
24-
./gradlew bintrayUpload --no-daemon || EXIT_STATUS=$?
25-
fi
2620
elif [[ $TRAVIS_PULL_REQUEST == 'false' && $TRAVIS_BRANCH =~ ^master|[123]\..\.x$ ]]; then
2721
# for snapshots only to repo.grails.org
2822
./gradlew publish || EXIT_STATUS=$?

0 commit comments

Comments
 (0)