-
-
Notifications
You must be signed in to change notification settings - Fork 46
41 lines (40 loc) · 1.04 KB
/
docs.yaml
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
31
32
33
34
35
36
37
38
39
40
41
name: Docs
on:
push:
branches:
- main
- docs
jobs:
test:
name: Docs
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install latest Rust nightly
uses: dtolnay/rust-toolchain@stable
with:
toolchain: nightly-2024-10-28
components: rustfmt, clippy
- name: Install ghp-import
uses: actions/setup-python@v5
with:
python-version: 3.12
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install ghp-import
- name: Set up Node
uses: actions/setup-node@v4
with:
node-version: 22
- name: Build node reference
run: |
npm install
npx typedoc
- name: deploy docs
run: |
mkdir -p target/doc
cp -r docs/* target/doc/
echo ghp-import step
ghp-import -n target/doc && \
git push -qf https://${{ secrets.GITHUB_TOKEN }}@github.com/${GITHUB_REPOSITORY}.git gh-pages