Skip to content

Commit fcb835e

Browse files
authored
Merge pull request #379 from wwayne/travis_docs
ci(gh-pages): Allow travis to publish new examples to github
2 parents 1ce0a12 + 62e5c25 commit fcb835e

File tree

3 files changed

+78
-1
lines changed

3 files changed

+78
-1
lines changed

.travis.yml

+4
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ install:
1515

1616
script:
1717
- npm run build
18+
- git config --global user.name "Travis CI"
19+
- git config --global user.email "[email protected]"
20+
- 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
1822

1923
after_success:
2024
- npm run semantic-release

package-lock.json

+72-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"start": "make dev",
99
"build": "make deploy",
1010
"deploy": "make deploy",
11+
"gh-pages": "gh-pages -d example",
1112
"github-changes": "github-changes -o wwayne -r react-tooltip -a --only-pulls --use-commit-body",
1213
"commit": "git cz",
1314
"semantic-release": "semantic-release"
@@ -77,6 +78,7 @@
7778
"concurrently": "^2.1.0",
7879
"enzyme": "^2.3.0",
7980
"enzyme-adapter-react-16": "^1.0.1",
81+
"gh-pages": "1.1.0",
8082
"github-changes": "^1.1.2",
8183
"http-server": "^0.11.1",
8284
"jsdom": "^9.2.1",

0 commit comments

Comments
 (0)