-
Notifications
You must be signed in to change notification settings - Fork 46
40 lines (36 loc) · 1014 Bytes
/
doc.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
name: Rust AutoDoc
env:
SCCACHE_GHA_ENABLED: "true"
RUSTC_WRAPPER: "sccache"
RUSTFLAGS: "-A warnings"
on:
push:
branches: master
pull_request:
branches: master
jobs:
autodoc:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Rust stable
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: stable
components: rust-src
target: wasm32-unknown-unknown
- name: Install protobuf-compiler
run: |
sudo apt-get install protobuf-compiler
- name: Setup sccache
uses: mozilla-actions/[email protected]
- name: Build the docs
run: |
cargo doc --all --no-deps
cp -f .maintain/index.html target/doc
- name: Deploy the docs
if: github.event_name != 'pull_request'
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./target/doc