25 lines
498 B
YAML
25 lines
498 B
YAML
language: rust
|
|
sudo: false
|
|
|
|
cache:
|
|
- cargo
|
|
|
|
rust:
|
|
- stable
|
|
|
|
before_script:
|
|
- (test -x $HOME/.cargo/bin/cargo-install-update || cargo install cargo-update)
|
|
- (test -x $HOME/.cargo/bin/mdbook || cargo install --vers "^0.3" mdbook)
|
|
- cargo install-update -a
|
|
|
|
script:
|
|
- mdbook build path/to/mybook && mdbook test path/to/mybook
|
|
|
|
deploy:
|
|
provider: pages
|
|
skip-cleanup: true
|
|
github-token: $GITHUB_DEPLOY_KEY
|
|
local-dir: path/to/mybook/book
|
|
keep-history: false
|
|
on:
|
|
branch: master |