forked from little-dude/rmp-rpc-book
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
30 lines (30 loc) · 1006 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
language: rust
before_install:
- eval "$(ssh-agent -s)"
- openssl aes-256-cbc -K $encrypted_882df0673185_key -iv $encrypted_882df0673185_iv -in deploy.priv.enc -out deploy.priv -d &&
chmod 600 deploy.priv &&
ssh-add deploy.priv
- git config --global user.email "[email protected]" &&
git config --global user.name "little-dude"
rust:
- stable
cache: cargo
script:
- cargo install mdbook --force &&
mdbook build &&
git clone [email protected]:little-dude/rmp-rpc-book-build.git &&
rm -rf rmp-rpc-book-build/* &&
mv book/* rmp-rpc-book-build/ &&
cd rmp-rpc-book-build &&
git add . &&
git commit -m 'update' --allow-empty &&
git push origin master &&
cd .. &&
git clone --recursive [email protected]:little-dude/little-dude.github.io.git &&
cd little-dude.github.io/rmp-rpc-book/ &&
git fetch &&
git reset --hard origin/master &&
cd .. &&
git add . &&
git commit -m 'update book' &&
git push origin master