Skip to content

Commit 2b2e78d

Browse files
committed
Release Grails 3.2.0.RC1
1 parent 993e9d4 commit 2b2e78d

File tree

1 file changed

+3
-48
lines changed

1 file changed

+3
-48
lines changed

travis-publish-archives.sh

Lines changed: 3 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -34,54 +34,9 @@ if [[ $TRAVIS_PULL_REQUEST == 'false'
3434
echo "Running Gradle publish for branch $TRAVIS_BRANCH"
3535

3636
if [[ $TRAVIS_TAG =~ ^v[[:digit:]] ]]; then
37-
#./gradlew -Psigning.keyId="$SIGNING_KEY" -Psigning.password="$SIGNING_PASSPHRASE" -Psigning.secretKeyRingFile="${TRAVIS_BUILD_DIR}/secring.gpg" publish uploadArchives -x grails-bom:uploadArchives -x grails-dependencies:uploadArchives || EXIT_STATUS=$?
38-
#./gradlew closeAndPromoteRepository
39-
40-
if [[ $EXIT_STATUS == 0 ]]; then
41-
#./gradlew --stop
42-
# wait 30 seconds to ensure the previous promotion completes
43-
#sleep 30
44-
./gradlew -Psigning.keyId="$SIGNING_KEY" -Psigning.password="$SIGNING_PASSPHRASE" -Psigning.secretKeyRingFile="${TRAVIS_BUILD_DIR}/secring.gpg" grails-dependencies:uploadArchives grails-bom:uploadArchives || EXIT_STATUS=$?
45-
./gradlew closeAndPromoteRepository
46-
fi
47-
48-
if [[ $EXIT_STATUS == 0 ]]; then
49-
./gradlew assemble || EXIT_STATUS=$?
50-
fi
51-
52-
# Configure GIT
53-
#git config --global credential.helper "store --file=~/.git-credentials"
54-
#echo "https://$GH_TOKEN:@github.com" > ~/.git-credentials
55-
56-
#git config --global user.name "$GIT_NAME"
57-
#git config --global user.email "$GIT_EMAIL"
58-
59-
# Tag and release the docs
60-
#git clone https://${GH_TOKEN}@github.com/grails/grails-doc.git grails-doc
61-
#cd grails-doc
62-
63-
#echo "grails.version=${TRAVIS_TAG:1}" > gradle.properties
64-
#git add gradle.properties
65-
#git commit -m "Release $TRAVIS_TAG docs"
66-
#git tag $TRAVIS_TAG
67-
#git push --tags
68-
#git push
69-
#cd ..
70-
71-
# Update the website
72-
#git clone https://${GH_TOKEN}@github.com/grails/grails-static-website.git
73-
#cd grails-static-website
74-
#echo -e "${TRAVIS_TAG:1}" >> generator/src/main/resources/versions
75-
#git add generator/src/main/resources/versions
76-
#git commit -m "Release Grails $TRAVIS_TAG"
77-
#git push
78-
#cd ..
79-
80-
# Rebuild Artifactory index
81-
#curl -H "X-Api-Key:$ARTIFACTORY_API_KEY" -X POST "http://repo.grails.org/grails/api/maven?repos=libs-releases-local,plugins-releases-local,plugins3-releases-local,core&force=1"
82-
83-
elif [[ $TRAVIS_BRANCH =~ ^master|[23]\..\.x$ ]]; then
84-
./gradlew -Psigning.keyId="$SIGNING_KEY" -Psigning.password="$SIGNING_PASSPHRASE" -Psigning.secretKeyRingFile="${TRAVIS_BUILD_DIR}/secring.gpg" publish || EXIT_STATUS=$?
37+
./gradlew -Psigning.keyId="$SIGNING_KEY" -Psigning.password="$SIGNING_PASSPHRASE" -Psigning.secretKeyRingFile="${TRAVIS_BUILD_DIR}/secring.gpg" grails-dependencies:uploadArchives grails-bom:uploadArchives || EXIT_STATUS=$?
38+
./gradlew closeAndPromoteRepository
39+
./gradlew assemble || EXIT_STATUS=$?
8540
fi
8641

8742
fi

0 commit comments

Comments
 (0)