Skip to content

Commit dfc509c

Browse files
committed
Generate GitHub Pages
1 parent 3f06a48 commit dfc509c

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

.github/workflows/gh-pages.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: GitHub Pages
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request: {}
8+
9+
jobs:
10+
pages:
11+
runs-on: ubuntu-22.04
12+
steps:
13+
- uses: actions/checkout@v2
14+
- uses: actions-rs/cargo@v1
15+
with:
16+
command: doc
17+
args: --no-deps
18+
- name: Deploy GitHub Pages
19+
uses: peaceiris/actions-gh-pages@v3
20+
with:
21+
github_token: ${{ secrets.GITHUB_TOKEN }}
22+
publish_dir: ./target/doc
23+
force_orphan: true

0 commit comments

Comments
 (0)