From 8a8ca1a47b27ee5a55c28b60d202db7102cf9012 Mon Sep 17 00:00:00 2001 From: Tyler Mandry Date: Mon, 29 Oct 2018 15:59:04 -0500 Subject: [PATCH 1/2] Build docs and deploy to gh-pages --- .travis.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 84c95c97316..e64104178fd 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,4 +6,11 @@ script: - cd chalk-engine; RUSTC_BOOTSTRAP=1 cargo build --no-default-features - cd chalk-engine; RUSTC_BOOTSTRAP=1 cargo build --all-features - RUSTC_BOOTSTRAP=1 cargo test --all - + - RUSTC_BOOTSTRAP=1 cargo doc --document-private-items +deploy: + provider: pages + local-dir: ./target/doc + skip-cleanup: true + github-token: $GITHUB_TOKEN + on: + branch: master From 63ea12b69b8e51437ed7a8bdc9f266755498b8fe Mon Sep 17 00:00:00 2001 From: Tyler Mandry Date: Mon, 29 Oct 2018 16:10:53 -0500 Subject: [PATCH 2/2] Put docs below /doc/ on gh-pages --- .travis.yml | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/.travis.yml b/.travis.yml index e64104178fd..acd1477eea0 100644 --- a/.travis.yml +++ b/.travis.yml @@ -8,9 +8,13 @@ script: - RUSTC_BOOTSTRAP=1 cargo test --all - RUSTC_BOOTSTRAP=1 cargo doc --document-private-items deploy: - provider: pages - local-dir: ./target/doc - skip-cleanup: true - github-token: $GITHUB_TOKEN - on: - branch: master + - provider: script + script: mkdir -p target/gh-pages && mv target/doc target/gh-pages/ + on: + branch: master + - provider: pages + local-dir: ./target/gh-pages + skip-cleanup: true + github-token: $GITHUB_TOKEN + on: + branch: master