Skip to content

Commit

Permalink
Updated travis-publish.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
puneetbehl committed Apr 6, 2020
1 parent 8223e0b commit b14ea22
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions travis-publish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ fi

echo "Publishing for branch $TRAVIS_BRANCH JDK: $TRAVIS_JDK_VERSION"

if [[ $TRAVIS_REPO_SLUG == "grails/gorm-graphql" && $TRAVIS_PULL_REQUEST == 'false' && $TRAVIS_BRANCH =~ ^master|[123]\..\.x$ && $EXIT_STATUS -eq 0 ]]; then
if [[ $TRAVIS_REPO_SLUG == "grails/gorm-graphql" && $TRAVIS_PULL_REQUEST == 'false' && $EXIT_STATUS -eq 0 ]]; then

echo "Publishing archives"
export GRADLE_OPTS="-Xmx1500m -Dfile.encoding=UTF-8"
Expand All @@ -23,18 +23,16 @@ if [[ $TRAVIS_REPO_SLUG == "grails/gorm-graphql" && $TRAVIS_PULL_REQUEST == 'fal
if [[ $EXIT_STATUS -eq 0 ]]; then
./gradlew bintrayUpload --no-daemon || EXIT_STATUS=$?
fi
else
elif [[ $TRAVIS_PULL_REQUEST == 'false' && $TRAVIS_BRANCH =~ ^master|[123]\..\.x$ ]]; then
# for snapshots only to repo.grails.org
./gradlew publish || EXIT_STATUS=$?
fi

if [[ $EXIT_STATUS -eq 0 ]]; then
echo "Publishing Successful."
if [[ $EXIT_STATUS -eq 0 ]]; then
echo "Publishing Successful."
fi
fi


if [[ $EXIT_STATUS -eq 0 ]]; then
echo "Publishing Successful."
if [[ $EXIT_STATUS -eq 0 && ( -n $TRAVIS_TAG || $TRAVIS_BRANCH =~ ^master$ ) ]]; then

echo "Publishing Documentation..."
./gradlew docs:docs
Expand Down

0 comments on commit b14ea22

Please sign in to comment.