Skip to content

Commit

Permalink
Merge pull request #379 from wwayne/travis_docs
Browse files Browse the repository at this point in the history
ci(gh-pages): Allow travis to publish new examples to github
  • Loading branch information
aronhelser authored May 2, 2018
2 parents 1ce0a12 + 62e5c25 commit fcb835e
Show file tree
Hide file tree
Showing 3 changed files with 78 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ install:

script:
- npm run build
- git config --global user.name "Travis CI"
- git config --global user.email "[email protected]"
- export GIT_PUBLISH_URL=https://${GH_TOKEN}@github.com/wwayne/react-tooltip.git
- if [ "$TRAVIS_BRANCH" == "master" ]; then npm run gh-pages -- --repo ${GIT_PUBLISH_URL}; fi

after_success:
- npm run semantic-release
Expand Down
73 changes: 72 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"start": "make dev",
"build": "make deploy",
"deploy": "make deploy",
"gh-pages": "gh-pages -d example",
"github-changes": "github-changes -o wwayne -r react-tooltip -a --only-pulls --use-commit-body",
"commit": "git cz",
"semantic-release": "semantic-release"
Expand Down Expand Up @@ -77,6 +78,7 @@
"concurrently": "^2.1.0",
"enzyme": "^2.3.0",
"enzyme-adapter-react-16": "^1.0.1",
"gh-pages": "1.1.0",
"github-changes": "^1.1.2",
"http-server": "^0.11.1",
"jsdom": "^9.2.1",
Expand Down

0 comments on commit fcb835e

Please sign in to comment.