Skip to content

Commit d6fa8e3

Browse files
committed
chore: add docs github workflow
1 parent d8bd691 commit d6fa8e3

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.github/workflows/docs.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Build docs
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
jobs:
9+
docs:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout sources
13+
uses: actions/checkout@v1
14+
15+
- name: Install toolchain
16+
uses: actions-rs/toolchain@v1
17+
with:
18+
toolchain: stable
19+
override: true
20+
21+
- name: Run cargo doc
22+
uses: actions-rs/cargo@v1
23+
with:
24+
command: doc
25+
args: -p daemonize
26+
27+
- name: Deploy docs
28+
uses: JamesIves/[email protected]
29+
with:
30+
branch: gh-pages
31+
folder: target/doc
32+
single-commit: true

0 commit comments

Comments
 (0)