-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (45 loc) · 1.25 KB
/
Copy pathdocs.yml
File metadata and controls
54 lines (45 loc) · 1.25 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
name: Docs site build
# Opt into Node 24 for JS actions ahead of the 2026-06-16 forced cutoff
# (actions/checkout still ships Node 20).
env:
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: "true"
# Build-only gate: verifies the VitePress docs site still builds (catches broken
# docs / dead links before merge). Deployment is handled by Vercel
# (website/vercel.json), NOT GitHub Pages — so there is no Pages config or
# deploy step here.
on:
push:
branches: [main]
paths:
- 'docs/**'
- 'compiler/etc/sigil.api.md'
- 'website/**'
- '.github/workflows/docs.yml'
pull_request:
branches: [main]
paths:
- 'docs/**'
- 'compiler/etc/sigil.api.md'
- 'website/**'
- '.github/workflows/docs.yml'
workflow_dispatch:
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
defaults:
run:
working-directory: website
steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- name: Install
run: bun install
- name: Sync docs from repo
run: bun run sync
- name: Build (VitePress)
# Same command Vercel runs (website/vercel.json); no Pages base override.
run: bun run build