forked from Jimskapt/rust-book-fr
-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (35 loc) · 1.08 KB
/
gh_pages_update.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
31
32
33
34
35
36
37
name: gh_pages_update
on:
push:
branches:
- french-unreleased
jobs:
publish-book:
name: Publish book on Github Pages
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Update rustup
run: rustup self update
- name: Install Rust
run: |
rustup set profile minimal
rustup toolchain install 1.57 -c rust-docs
rustup default 1.57
- name: Install mdbook
run: |
mkdir bin
curl -sSL https://github.com/rust-lang/mdBook/releases/download/v0.4.14/mdbook-v0.4.14-x86_64-unknown-linux-gnu.tar.gz | tar -xz --directory=bin
echo "$(pwd)/bin" >> ${GITHUB_PATH}
- name: Report versions
run: |
rustup --version
rustc -Vv
mdbook --version
- name: Run build
run: mdbook build FRENCH
- uses: rust-lang/simpleinfra/github-actions/static-websites@master
with:
deploy_dir: FRENCH/book
github_token: "${{ secrets.GITHUB_TOKEN }}"
if: github.ref == 'refs/heads/french-unreleased'