Skip to content

Commit ceb0d38

Browse files
committed
github workflow for docs
1 parent 5a8f9a0 commit ceb0d38

File tree

2 files changed

+20
-1
lines changed

2 files changed

+20
-1
lines changed

.github/workflows/docs.yaml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: docs
2+
on:
3+
push:
4+
branches: [main]
5+
workflow_dispatch:
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v4
12+
- uses: dtolnay/rust-toolchain@stable
13+
- run: cargo doc --no-deps --all-features
14+
- name: Deploy to gh-pages
15+
uses: peaceiris/actions-gh-pages@v4
16+
with:
17+
publish_branch: gh-pages
18+
publish_dir: ./target/doc
19+
force_orphan: true

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
/target
22
archive/
33
memos/
4-
.*/
4+
.vscode/

0 commit comments

Comments
 (0)