-
Notifications
You must be signed in to change notification settings - Fork 4
47 lines (45 loc) · 1.19 KB
/
document.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
42
43
44
45
46
47
name: document
on:
schedule:
- cron: 0 0 * * *
push:
branches:
- master
workflow_dispatch:
pull_request:
jobs:
document:
name: build document
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v1
with:
python-version: "3.10.15"
- name: Install the latest version of uv
uses: astral-sh/setup-uv@v3
with:
version: "latest"
- name: Install
run: uv sync
- name: Set env
run: echo "GITHUB_TOKEN=${{ secrets.WAMV_TAN_BOT_SECRET }}" >> $GITHUB_ENV
- name: Run kibot
working-directory: circuits
run: sh run_kibot.sh
- name: Generate documentation
run: uv run mkdocs build
working-directory: docs
env:
SHOW_DASHBOARD: true
- uses: actions/upload-artifact@v4
if: ${{ github.event_name == 'pull_request'}}
with:
name: site
path: docs/site
- uses: peaceiris/actions-gh-pages@v3
if: ${{ github.event_name != 'pull_request'}}
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: docs/site