Browse Source

Automatically deploy website onto gh-pages (if master and not PR). Fixes #34

Kevin van Zonneveld 9 years ago
parent
commit
cdab835310
1 changed files with 3 additions and 3 deletions
  1. 3 3
      .travis.yml

+ 3 - 3
.travis.yml

@@ -12,11 +12,11 @@ script:
   - "npm run-script build"
   - "npm run-script build:examples"
 
-# Automatically deploy website onto gh-pages
-after_script:
+# Automatically deploy website onto gh-pages (if master and not PR)
+after_success:
   - git config --global user.name 'Uppy Bot'
   - git config --global user.email 'uppybot@uppyjs.io'
-  - make website-deploy ghpages_url=${GHPAGES_URL}
+  - test $TRAVIS_PULL_REQUEST == "false" && test $TRAVIS_BRANCH == "master" && make website-deploy ghpages_url=${GHPAGES_URL}
 
 env:
   global: