Skip to content

Commit 10c2517

Browse files
committed
Take 3: Only run assemble
1 parent 0149ec7 commit 10c2517

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

travis-publish-archives.sh

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -46,20 +46,20 @@ if [[ $TRAVIS_PULL_REQUEST == 'false'
4646
echo "Running Gradle publish for branch $TRAVIS_BRANCH"
4747

4848
if [[ $TRAVIS_TAG =~ ^v[[:digit:]] ]]; then
49-
./gradlew -Psigning.keyId="$SIGNING_KEY" -Psigning.password="$SIGNING_PASSPHRASE" -Psigning.secretKeyRingFile="${TRAVIS_BUILD_DIR}/secring.gpg" uploadArchives -x grails-bom:uploadArchives -x grails-dependencies:uploadArchives || EXIT_STATUS=$?
50-
./gradlew closeAndPromoteRepository
51-
52-
if [[ $EXIT_STATUS == 0 ]]; then
53-
./gradlew --stop
54-
# wait 30 seconds to ensure the previous promotion completes
55-
sleep 30
56-
./gradlew -Psigning.keyId="$SIGNING_KEY" -Psigning.password="$SIGNING_PASSPHRASE" -Psigning.secretKeyRingFile="${TRAVIS_BUILD_DIR}/secring.gpg" grails-dependencies:uploadArchives grails-bom:uploadArchives || EXIT_STATUS=$?
57-
./gradlew closeAndPromoteRepository
58-
fi
59-
60-
if [[ $EXIT_STATUS == 0 ]]; then
49+
# ./gradlew -Psigning.keyId="$SIGNING_KEY" -Psigning.password="$SIGNING_PASSPHRASE" -Psigning.secretKeyRingFile="${TRAVIS_BUILD_DIR}/secring.gpg" uploadArchives -x grails-bom:uploadArchives -x grails-dependencies:uploadArchives || EXIT_STATUS=$?
50+
# ./gradlew closeAndPromoteRepository
51+
52+
# if [[ $EXIT_STATUS == 0 ]]; then
53+
# ./gradlew --stop
54+
# # wait 30 seconds to ensure the previous promotion completes
55+
# sleep 30
56+
# ./gradlew -Psigning.keyId="$SIGNING_KEY" -Psigning.password="$SIGNING_PASSPHRASE" -Psigning.secretKeyRingFile="${TRAVIS_BUILD_DIR}/secring.gpg" grails-dependencies:uploadArchives grails-bom:uploadArchives || EXIT_STATUS=$?
57+
# ./gradlew closeAndPromoteRepository
58+
# fi
59+
60+
# if [[ $EXIT_STATUS == 0 ]]; then
6161
./gradlew assemble || EXIT_STATUS=$?
62-
fi
62+
# fi
6363

6464
# Configure GIT
6565
# git config --global credential.helper "store --file=~/.git-credentials"

0 commit comments

Comments
 (0)