diff --git a/scripts/travis b/scripts/travis
index 06529478c0348e4401125123f009b19b01e05d4b..036994c18a6f1a62d5884bd5ce5b8bd76d903e99 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