-
-
Notifications
You must be signed in to change notification settings - Fork 39
30 lines (28 loc) · 750 Bytes
/
docs.yml
File metadata and controls
30 lines (28 loc) · 750 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
name: Docs
on:
push:
branches: [ main ]
jobs:
docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Setup Rust
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
- name: Generate Docs
run: cargo doc --no-deps
- name: Prepare docs for deployment
run: |
mkdir gh-pages
echo "<meta http-equiv=\"refresh\" content=\"0; url=peng_quad\index.html\">" > target/doc/index.html
mv target/doc/* gh-pages/
touch gh-pages/.nojekyll
- name: Deploy Docs
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./gh-pages
force_orphan: true