diff --git a/.utility/deploy.sh b/.utility/deploy.sh index 267b0677..6551358e 100755 --- a/.utility/deploy.sh +++ b/.utility/deploy.sh @@ -1,6 +1,6 @@ #!/bin/bash set -ev -if [ "${TRAVIS_PULL_REQUEST}" = "false" ]; then +if [ "$TRAVIS_JDK_VERSION" == "oraclejdk7" ] && [ "$TRAVIS_PULL_REQUEST" == "false" ] && [ "$TRAVIS_BRANCH" == "master" ]; then echo "ossrh\${env.OSSRH_USER}\${env.OSSRH_PASS}" > ~/settings.xml - mvn deploy --settings ~/settings.xml +mvn deploy -Prelease --settings ~/settings.xml fi diff --git a/.utility/update_site_apidocs.sh b/.utility/update_site_apidocs.sh index 6bf65863..d0c3d0e4 100755 --- a/.utility/update_site_apidocs.sh +++ b/.utility/update_site_apidocs.sh @@ -9,7 +9,7 @@ fi echo -e "Publishing javadoc to gh-pages . . .\n" -cp -R ./gwtbootstrap3-extras/target/javadoc $HOME/javadoc-latest +cp -R -v ./target/apidocs $HOME/javadoc-latest git config --global user.email "travis@travis-ci.org" git config --global user.name "travis-ci" @@ -28,7 +28,7 @@ cp -Rf $HOME/javadoc-latest ./snapshot/extras-apidocs git add -f . git commit -m "Auto-push javadoc to gh-pages successful. (Travis build: $TRAVIS_BUILD_NUMBER)" -git push -fq origin gh-pages > /dev/null +git push -fq origin gh-pages echo -e "Published javadoc to gh-pages.\n"