Skip to content

Commit eca8297

Browse files
committed
ci(travis): try to fix gh-pages for pull requests
1 parent fcb835e commit eca8297

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.travis.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ script:
1818
- git config --global user.name "Travis CI"
1919
- git config --global user.email "[email protected]"
2020
- export GIT_PUBLISH_URL=https://${GH_TOKEN}@github.com/wwayne/react-tooltip.git
21-
- if [ "$TRAVIS_BRANCH" == "master" ]; then npm run gh-pages -- --repo ${GIT_PUBLISH_URL}; fi
21+
- if [ "$TRAVIS_BRANCH" == "master" ] && [ "$TRAVIS_PULL_REQUEST" = "false" ]; then npm run gh-pages -- --repo ${GIT_PUBLISH_URL}; fi
2222

2323
after_success:
2424
- npm run semantic-release

0 commit comments

Comments
 (0)