forked from ReactTooltip/react-tooltip
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: adding github pages configuration for deploy
- Loading branch information
1 parent
f30ae74
commit 208bdc9
Showing
1 changed file
with
11 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,10 +19,20 @@ script: | |
- git config --global user.email "[email protected]" | ||
- export GIT_PUBLISH_URL=https://${GH_TOKEN}@github.com/wwayne/react-tooltip.git | ||
- if [ "$TRAVIS_BRANCH" == "master" ] && [ "$TRAVIS_PULL_REQUEST" = "false" ]; then yarn gh-pages -- --repo ${GIT_PUBLISH_URL}; fi | ||
- cd example | ||
- yarn build | ||
|
||
deploy: | ||
provider: pages | ||
skip_cleanup: true | ||
token: $GH_TOKEN | ||
keep_history: true | ||
on: | ||
branch: refactoring | ||
|
||
after_success: | ||
- yarn semantic-release | ||
|
||
branches: | ||
except: | ||
- "/^v\\d+\\.\\d+\\.\\d+$/" |