diff --git a/scripts/travis b/scripts/travis index 06529478c..036994c18 100755 --- a/scripts/travis +++ b/scripts/travis @@ -25,7 +25,7 @@ yarn run build [ $? -gt 0 ] && exit 1 # Deploy documentation to GitHub pages -if [[ "$TRAVIS_BRANCH" == "master" ]]; then +if [ "$TRAVIS_BRANCH" == "master" -a "$TRAVIS_PULL_REQUEST" == "false" ]; then REMOTE="https://${GH_TOKEN}@github.com/squidfunk/mkdocs-material" # Set configuration for repository and deploy documentation