diff --git a/push-ghpages.sh b/push-ghpages.sh index cdb308f6..bea062dc 100644 --- a/push-ghpages.sh +++ b/push-ghpages.sh @@ -1,4 +1,7 @@ #!/bin/bash + +if [ "$TRAVIS_PULL_REQUEST" == "false" ] + echo Starting push to gh-pages... mkdir deploy cd deploy @@ -14,4 +17,6 @@ git add -f . git commit -m "Automatic built mkdocs | Travis Build $TRAVIS_BUILD_NUMBER pushed" git push -fq origin gh-pages > /dev/null -echo -e "Done" \ No newline at end of file +echo -e "Done" + +fi \ No newline at end of file