-
Notifications
You must be signed in to change notification settings - Fork 67
55 lines (45 loc) · 1.2 KB
/
pages.yaml
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
45
46
47
48
49
50
51
52
53
54
55
name: pages
on:
push:
branches:
- master
env:
CARGO_INCREMENTAL: 0
CARGO_NET_RETRY: 10
RUSTFLAGS: "-D warnings"
RUSTUP_MAX_RETRIES: 10
SCCACHE_GHA_ENABLED: "true"
RUSTC_WRAPPER: "sccache"
jobs:
pages:
if: github.repository == 'redbadger/crux'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- name: Run sccache-cache
uses: mozilla-actions/[email protected]
- name: Setup mdBook
uses: jontze/action-mdbook@v2
with:
token: ${{secrets.GITHUB_TOKEN}}
use-linkcheck: true
use-admonish: true
- name: Build Documentation
run: cargo doc --all --no-deps
- name: Build book
working-directory: docs
run: mdbook build
- name: Move outputs
run: |
set -e
mkdir ./public
mv ./target/doc ./public/master_api_docs
mv ./docs/book/html/* ./public/
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_branch: gh-pages
publish_dir: ./public
force_orphan: true