-
-
Notifications
You must be signed in to change notification settings - Fork 8
44 lines (36 loc) · 931 Bytes
/
site.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
38
39
40
41
42
43
44
name: Deploy site
on:
push:
branches: [ main ]
jobs:
build_and_deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: 'recursive'
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: nightly
default: true
profile: minimal
- name: Install dependencies
run: |
cargo install mdbook
- name: Generate rustdoc documentation
run: |
CARGO_TARGET_DIR=pages cargo doc \
--all-features \
--manifest-path kernel/Cargo.toml \
--document-private-items
mv site/* pages/
- name: Generate book
run: |
cd book && mdbook build
- name: Deploy to Github Pages
uses: JamesIves/github-pages-deploy-action@releases/v3
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages
FOLDER: pages