Repository navigation
65 lines (61 loc) · 1.9 KB
/
Copy pathpages.yml
File metadata and controls
65 lines (61 loc) · 1.9 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
name: Deploy site to GitHub Pages
on:
push:
branches: [main]
workflow_dispatch:
schedule:
# daily refresh: stats, latest release, docs corpus (DESIGN.md §5)
- cron: "17 6 * * *"
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: pages
cancel-in-progress: true
jobs:
deploy:
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- uses: actions/checkout@v4
- name: Check out obs-studio docs (sparse)
uses: actions/checkout@v4
with:
repository: obs-rust/obs-studio
path: .obs-studio
fetch-depth: 1
sparse-checkout-cone-mode: false
sparse-checkout: |
/*.md
/.mcp.json
/mcp
/rust/obs-mcp/Cargo.toml
/rust/obs-mcp/src/
/docs/
!/docs/images/
/docs/images/appimage-main-window.png
/docs/images/gpu-usage-label-hw.png
/docs/images/gpu-usage-label-sw.png
!/docs/rust-port/native-graph/
- uses: astral-sh/setup-uv@v6
- name: Build site
env:
GITHUB_TOKEN: ${{ github.token }}
run: uv run tools/build.py --obs-studio .obs-studio --out _site
- name: Check site
run: uv run tools/check.py _site
- name: Type check tools (basedpyright strict)
# pyrightconfig.json sets strict mode over tools/; the --with deps let it resolve imports.
run: >-
uv run --no-project --python 3.12
--with basedpyright==1.40.2 --with 'pydantic>=2.7' --with 'jsonschema>=4.22' --with types-jsonschema --with 'pillow>=11'
basedpyright --level error
- uses: actions/configure-pages@v5
- uses: actions/upload-pages-artifact@v3
with:
path: _site
- id: deployment
uses: actions/deploy-pages@v4