From feec53a73bfa469f23b616754009e82da0e84c0b Mon Sep 17 00:00:00 2001 From: Nick Fitzgerald Date: Tue, 19 Jun 2018 11:19:15 -0700 Subject: [PATCH] guide: Build and deploy the guide in Travis CI --- .travis.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) 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