Skip to content

Commit 3e790cd

Browse files
authored
Merge pull request #193 from lzutao/deploy
Deploy by using travis pages provider
2 parents 3f32560 + eb944db commit 3e790cd

File tree

2 files changed

+20
-50
lines changed

2 files changed

+20
-50
lines changed

.travis.yml

+20-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
language: rust
22

3+
git:
4+
depth: 1
5+
quiet: true
6+
37
cache: cargo
48

59
env:
@@ -8,13 +12,25 @@ env:
812

913
before_install:
1014
# Normal install of cargo-update
11-
- if [[ ! -f ~/.cargo/bin/cargo-install-update ]]; then cargo install cargo-update; fi
15+
- if [ ! -f ~/.cargo/bin/cargo-install-update ]; then
16+
cargo install cargo-update;
17+
fi
1218
# Conditional install/update of mdbook
1319
- cargo install-update -i mdbook
14-
- export PATH=$HOME/.cargo/bin:$PATH
20+
- export PATH="$HOME/.cargo/bin:$PATH"
1521

1622
script:
1723
- mdbook build
1824

19-
after_success:
20-
- ./deploy.sh
25+
deploy:
26+
- provider: pages
27+
name: "Rust API Guidelines"
28+
29+
skip-cleanup: true
30+
local-dir: book
31+
github-token: $GH_TOKEN
32+
keep-history: false
33+
on:
34+
branch: master
35+
verbose: true
36+
target_branch: gh_pages_test

deploy.sh

-46
This file was deleted.

0 commit comments

Comments
 (0)