Skip to content

Deploy by using travis pages provider #193

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Mar 30, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 20 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
language: rust

git:
depth: 1
quiet: true

cache: cargo

env:
Expand All @@ -8,13 +12,25 @@ env:

before_install:
# Normal install of cargo-update
- if [[ ! -f ~/.cargo/bin/cargo-install-update ]]; then cargo install cargo-update; fi
- if [ ! -f ~/.cargo/bin/cargo-install-update ]; then
cargo install cargo-update;
fi
# Conditional install/update of mdbook
- cargo install-update -i mdbook
- export PATH=$HOME/.cargo/bin:$PATH
- export PATH="$HOME/.cargo/bin:$PATH"

script:
- mdbook build

after_success:
- ./deploy.sh
deploy:
- provider: pages
name: "Rust API Guidelines"
email: "[email protected]"
skip-cleanup: true
local-dir: book
github-token: $GH_TOKEN
keep-history: false
on:
branch: master
verbose: true
target_branch: gh_pages_test
46 changes: 0 additions & 46 deletions deploy.sh

This file was deleted.