-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (45 loc) · 1.16 KB
/
docs.yml
File metadata and controls
48 lines (45 loc) · 1.16 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
name: Build and Release Docs
on:
push:
branches:
- main
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: true
jobs:
docs:
name: Build and Release Docs
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
with:
submodules: recursive
- uses: actions/cache@v4
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Install VapourSynth
uses: animafps/install-vapoursynth-action@master
with:
version: 72
cache: true
- name: Run doc
run: |
rustup update nightly && rustup default nightly
cargo doc --workspace --no-deps --exclude example_plugin --exclude rspipe
- name: Deploy documentation
uses: actions/upload-pages-artifact@v3
with:
path: target/doc
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4