diff --git a/.travis.yml b/.travis.yml index 9f9ca012..bd04fbde 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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