Skip to content

Commit 6b5c8eb

Browse files
committed
first attempt at publishing documents to github pages
1 parent b0dd49b commit 6b5c8eb

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

.github/workflows/pages.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Deploy to GitHub Pages
2+
3+
on:
4+
push:
5+
branches: [ "**" ]
6+
pull_request:
7+
branches: [ "main" ]
8+
9+
jobs:
10+
deploy:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Install dependencies
14+
run: |
15+
sudo apt update
16+
sudo apt install -y llvm-dev libclang-dev clang
17+
- name: Install rust
18+
uses: moonrepo/setup-rust@v1
19+
- name: Checkout code
20+
uses: actions/checkout@v4
21+
- name: Run unit tests
22+
run: |
23+
cargo docs --no-deps
24+
- name: Deploy to github pages
25+
uses: peaceiris/actions-gh-pages@v3
26+
with:
27+
github_token: ${{ secrets.github_token }}
28+
publish_dir: ./target/doc

0 commit comments

Comments
 (0)