forked from tauri-apps/webkit2gtk-rs
-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (32 loc) · 1013 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
name: github pages
on:
push:
branches: [master]
jobs:
build-deploy:
runs-on: ubuntu-latest
steps:
- run: sudo apt-get install libwebkit2gtk-4.0-dev -y
- uses: actions/checkout@v2
with:
submodules: "recursive"
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- working-directory: gir
run: cargo build --release
- run: "./gir/target/release/gir -c ./Gir.toml -d ./gir-files --doc-target-path docs.md -m doc"
- run: cargo install rustdoc-stripper
- run: rustdoc-stripper -g -o ./docs.md
- uses: actions-rs/cargo@v1
with:
command: doc
args: --package webkit2gtk --package webkit2gtk-sys --features=v2_30 --no-deps
- name: Deploy
uses: peaceiris/actions-gh-pages@v2
env:
PERSONAL_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PUBLISH_BRANCH: gh-pages
PUBLISH_DIR: ./target/doc/