guide: Build and deploy the guide in Travis CI

This commit is contained in:
Nick Fitzgerald 2018-06-19 11:19:15 -07:00
parent 1d9a7dfdee
commit feec53a73b

View File

@ -67,6 +67,19 @@ matrix:
- |
(cd examples/comments && sed -i 's/: "webpack-dev-server"/: "webpack"/' package.json && ./build.sh)
# Build the guide.
- rust: stable
script: (cd guide && cargo install mdbook --vers "^0.1.0" && mdbook build)
deploy:
provider: pages
skip-cleanup: true
github-token: $GITHUB_TOKEN # Set in travis-ci.org dashboard, marked secure
local-dir: guide
keep-history: false
on:
branch: master
install:
- curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.8/install.sh | bash