-
Notifications
You must be signed in to change notification settings - Fork 1
36 lines (34 loc) · 955 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
name: Doc
on:
push:
branches:
- 'master'
jobs:
docs:
name: Deploy docs
runs-on: ubuntu-latest
env:
CARGO_INCREMENTAL: 0
CARGO_NET_RETRY: 10
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
override: true
- name: Build
run: |
cargo doc --no-deps --all-features
echo "<meta http-equiv=\"refresh\" content=\"0; URL=webthings_gateway_ipc_types/index.html\"/>" > target/doc/index.html
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_branch: docs
publish_dir: ./target/doc
force_orphan: true
user_name: 'github-actions[bot]'
user_email: 'github-actions[bot]@users.noreply.github.com'