tangjinzhou 2018-12-28 10:28:31 +08:00
commit 87ad915520
1 changed files with 4 additions and 1 deletions

View File

@ -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"