-
Notifications
You must be signed in to change notification settings - Fork 1
72 lines (60 loc) · 1.66 KB
/
website.yml
File metadata and controls
72 lines (60 loc) · 1.66 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
name: Deploy Website to GitHub Pages
on:
push:
branches: [main]
paths:
- "website/**"
- "tests/**"
- "report/**"
- "src/vip/**"
- "scripts/generate-test-catalog.py"
- ".github/workflows/website.yml"
- ".github/workflows/example-report.yml"
workflow_dispatch:
permissions:
contents: write
concurrency:
group: pages
cancel-in-progress: false
jobs:
example-report:
uses: ./.github/workflows/example-report.yml
secrets: inherit
deploy:
needs: example-report
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- uses: astral-sh/setup-uv@v5
with:
enable-cache: true
- name: Sync Python dependencies
run: uv sync --frozen
- name: Generate test catalog
run: uv run python scripts/generate-test-catalog.py
- uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v4
with:
node-version: 20
cache: npm
cache-dependency-path: website/package-lock.json
- name: Build website
run: |
cd website
npm ci
npm run build
touch dist/.nojekyll
- name: Download example report
uses: actions/download-artifact@v4
with:
name: example-report
path: website/dist/example-report/
- uses: JamesIves/github-pages-deploy-action@v4.8.0
with:
branch: gh-pages
folder: website/dist
clean-exclude: |
pr-preview/
pr-preview-site/
force: false