blob: 4cc922d813ca392bab7feb427d6bdaf3513b15be (
plain)
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
|
name: Website
on:
pull_request:
paths:
- ".github/workflows/website.yml"
- "website/**"
- "docs/next/website/**"
- "docs/versions/**"
- "scripts/test_preview.py"
push:
branches: [master]
paths:
- ".github/workflows/website.yml"
- "website/**"
- "docs/next/website/**"
- "docs/versions/**"
- "scripts/test_preview.py"
permissions:
contents: read
concurrency:
group: website-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Checkout
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6
with:
fetch-depth: 0
persist-credentials: false
- name: Install Bun
uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2
with:
bun-version: 1.3.14
- name: Validate version snapshots
run: node website/scripts/docs-versions.mjs check
- name: Build website
run: cd website && bun install --frozen-lockfile && bun run build
|