-
-
Notifications
You must be signed in to change notification settings - Fork 56
40 lines (35 loc) · 887 Bytes
/
docs.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: rustdoc Github Pages
on:
push:
branches:
- main
paths-ignore:
- "*.md"
- "LICENSE"
env:
CARGO_INCREMENTAL: 0
CARGO_NET_RETRY: 10
CARGO_TERM_COLOR: always
RUSTFLAGS: "-D warnings -W unreachable-pub"
jobs:
rustdoc:
runs-on: [self-hosted, Linux, X64]
container: rust:1-slim
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive
- name: Install protoc
run: apt-get update && apt-get -y install protobuf-compiler
- name: Build Docs
env:
SQLX_OFFLINE: true
run: cargo doc --no-deps --workspace
- name: Deploy Docs
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_branch: gh-pages
publish_dir: ./target/doc
force_orphan: true