-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (42 loc) · 1.11 KB
/
Copy pathdocs.yml
File metadata and controls
50 lines (42 loc) · 1.11 KB
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
48
49
50
name: Documentation
on:
push:
branches:
- main
pull_request:
branches:
- main
permissions:
contents: write
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- name: Setup Python
uses: actions/setup-python@v7
with:
python-version: "3.12"
- name: Setup uv
uses: astral-sh/setup-uv@v7
- name: Build docs
run: |
uv sync --only-group docs --no-upgrade
uv run --no-sync mkdocs build
- name: Build demo
run: |
cd test_zig_project
uv sync --no-upgrade
uv run --no-sync mkdocs build
cd ..
- name: Copy demo docs into deployment directory
run: |
cp -r test_zig_project/site site/demo
- name: Deploy docs
if: github.event_name != 'pull_request'
uses: JamesIves/github-pages-deploy-action@v4
with:
git-config-name: github-actions[bot]
git-config-email: 41898282+github-actions[bot]@users.noreply.github.com
folder: site
single-commit: true