diff --git a/scripts/deploy-to-gh-pages.sh b/scripts/deploy-to-gh-pages.sh index 38d5953b7..c7c47c267 100644 --- a/scripts/deploy-to-gh-pages.sh +++ b/scripts/deploy-to-gh-pages.sh @@ -2,7 +2,10 @@ set -e # exit with nonzero exit code if anything fails -if [[ $TRAVIS_BRANCH == "master" && $TRAVIS_PULL_REQUEST == "false" ]]; then +BUMP="bump " +SITE="update site" + +if [[ $TRAVIS_BRANCH == "master" && $TRAVIS_PULL_REQUEST == "false" ]] && [[ $TRAVIS_COMMIT_MESSAGE == *$BUMP* || $TRAVIS_COMMIT_MESSAGE == $SITE ]]; then echo "Starting to update gh-pages\n"