-
Notifications
You must be signed in to change notification settings - Fork 0
88 lines (76 loc) · 2.42 KB
/
Copy pathdocs-site.yml
File metadata and controls
88 lines (76 loc) · 2.42 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
name: Deploy docs site (Astro Starlight) to Pages
on:
push:
branches: [master]
paths:
- 'docs/**'
- 'docs-site/**'
- 'agent/graph.py'
- 'api/app.py'
- 'api/routers/**'
- 'config/providers.yml'
- 'README.md'
- 'AGENT_STATE.md'
- 'BACKLOG.md'
- 'AUTOPILOT.md'
- 'DEPRECATIONS.md'
- '.github/workflows/docs-site.yml'
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: pages
cancel-in-progress: false
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Setup Node
uses: actions/setup-node@v6
with:
node-version: '22'
cache: 'npm'
cache-dependency-path: docs-site/package-lock.json
- name: Install
working-directory: docs-site
run: npm ci
- name: Audit npm dependencies
working-directory: docs-site
# The deployed artifact is fully static (HTML/CSS/JS/woff2/SVG) — no npm
# package executes at runtime. The current moderate/high advisories
# (esbuild dev-server & Deno installer; dompurify/js-yaml, used only while
# building mermaid diagrams and parsing config) have no runtime exposure
# and no non-breaking fix in the Astro 6 dependency tree (`npm audit fix`
# is a no-op; `--force` would downgrade Astro and break the build).
# Report everything for visibility, but only fail the deploy on a critical
# supply-chain advisory. Revisit when Astro/vite ship patched esbuild.
run: |
npm audit --audit-level=moderate || true
npm audit --audit-level=critical
- name: Type-check docs site
working-directory: docs-site
run: npm run check
- name: Install chromium-headless-shell for rehype-mermaid SSR
working-directory: docs-site
run: npx --yes playwright install --with-deps chromium-headless-shell
- name: Build
working-directory: docs-site
run: npm run build
- name: Upload artifact
uses: actions/upload-pages-artifact@v5
with:
path: docs-site/dist
deploy:
needs: build
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy
id: deployment
uses: actions/deploy-pages@v5