forked from privacy-scaling-explorations/chiquito
-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (37 loc) · 1.23 KB
/
api_rust_doc.yml
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
42
43
44
45
46
name: api rust doc
on:
push:
branches: [ "main" ]
permissions: {}
jobs:
deploy:
permissions:
contents: write # to push pages branch (peaceiris/actions-gh-pages)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Build api rust doc
run: cargo doc --no-deps --package chiquito
- name: Add index.html file to docs root
run: |
mkdir -p ./target/doc
echo '<meta http-equiv="refresh" content="0; url=chiquito">' > ./target/doc/index.html
- name: Build book
run: pip install jupyter-book && make book
- name: Add CNAME file to docs root
run: |
mkdir -p ./book/_build/html
echo 'docs.pecadorplonkish.xyz' > ./book/_build/html/CNAME
touch ./book/_build/html/.nojekyll
- name: Deploy book
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./book/_build/html
destination_dir: ./docs
# - name: Deploy Api docs
# uses: peaceiris/actions-gh-pages@v3
# with:
# github_token: ${{ secrets.GITHUB_TOKEN }}
# publish_dir: ./target/doc
# destination_dir: ./docs/apidocs