Skip to content

Commit cd36c98

Browse files
committed
Deploy documentation to GitHub Pages
1 parent a69c441 commit cd36c98

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.github/workflows/doc.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Documentation
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
jobs:
9+
release:
10+
name: Deploy Documentation
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- name: Checkout Repository
15+
uses: actions/checkout@v1
16+
17+
- name: Setup Rust
18+
run: |
19+
rustup update nightly --no-self-update
20+
rustup default nightly
21+
22+
- name: Build Documentation
23+
run: cargo doc --no-deps
24+
25+
- name: Deploy Documentation
26+
uses: peaceiris/actions-gh-pages@v3
27+
with:
28+
deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }}
29+
publish_branch: gh-pages
30+
publish_dir: ./target/doc

0 commit comments

Comments
 (0)