-
-
Notifications
You must be signed in to change notification settings - Fork 8
49 lines (45 loc) · 1.27 KB
/
Copy pathdeploy-docs.yml
File metadata and controls
49 lines (45 loc) · 1.27 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
name: Deploy documentation
on:
push:
branches:
- main
paths:
- "docs/**"
- "maintainers/**"
- "README.md"
- "pyproject.toml"
- "uv.lock"
- "zensical.toml"
- "zensical_iscc/**"
- "scripts/check_site_paths.py"
- "scripts/gen_markdown_pages.py"
- ".github/workflows/deploy-docs.yml"
workflow_dispatch:
permissions:
contents: write
concurrency:
group: pages-${{ github.ref }}
cancel-in-progress: true
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: astral-sh/setup-uv@v6
with:
enable-cache: true
- name: Check source path compatibility
run: uv run python scripts/check_site_paths.py
- name: Build site
run: uv run zensical build --clean
- name: Publish Markdown sources beside the rendered pages
run: uv run python scripts/gen_markdown_pages.py
- name: Check generated site compatibility
run: uv run python scripts/check_site_paths.py --site-dir site
- name: Publish to gh-pages
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_branch: gh-pages
publish_dir: ./site
cname: iscc.codes