forked from parallel-finance/parallel
-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (47 loc) · 1.48 KB
/
rustdoc.yml
File metadata and controls
55 lines (47 loc) · 1.48 KB
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: Deploy Docs to GitHub Pages
on:
push:
branches:
- master
jobs:
docs:
if: github.repository == 'parallel-finance/parallel'
name: GitHub Pages
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
rust: [nightly-2021-11-07]
steps:
- name: Checkout Repository
uses: actions/checkout@v1
- name: Install Rust toolchain ${{ matrix.rust }}
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{ matrix.rust }}
override: true
- name: Install wasm32-unknown-unknown for ${{ matrix.rust }}
uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.rust }}
target: wasm32-unknown-unknown
override: true
- name: Build Documentation
uses: actions-rs/cargo@v1
env:
RUSTDOCFLAGS: "--enable-index-page -Zunstable-options"
with:
toolchain: ${{ matrix.rust }}
command: doc
args: --workspace --exclude heiko-runtime --exclude parallel-runtime --exclude vanilla-runtime --exclude parallel --no-deps
- name: Use Custom Domain
run: |
echo "api-docs.parallel.fi" > target/doc/CNAME
- name: Deploy Documentation
uses: peaceiris/actions-gh-pages@v3
with:
deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }}
publish_branch: gh-pages
publish_dir: ./target/doc
force_orphan: true