-
Notifications
You must be signed in to change notification settings - Fork 35
63 lines (52 loc) · 1.63 KB
/
Copy pathdeploy.yml
File metadata and controls
63 lines (52 loc) · 1.63 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
name: Deploy to GitHub Pages
# Builds the static site and publishes it to GitHub Pages on every push to
# main. The RF engine ships as committed WebAssembly (src/engine/generated/),
# so this needs no Emscripten — just a frontend build. Correctness (engine
# rebuild diff, type check, golden tests) is gated separately by ci.yml.
#
# One-time setup in the repo: Settings → Pages → Source = "GitHub Actions".
on:
push:
branches: [main]
workflow_dispatch:
# Allow the deploy job to publish to Pages; one in-flight deploy at a time.
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: pages
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: pnpm/action-setup@v6
with:
version: 9
- uses: actions/setup-node@v6
with:
node-version: 24
cache: pnpm
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Build site
run: pnpm build
env:
# Optional: add a STADIA_API_KEY repo secret (Settings → Secrets and
# variables → Actions) to enable the Stadia "Terrain" basemap in
# production. Without it, the no-key "Topographic" terrain still works.
VITE_STADIA_API_KEY: ${{ secrets.STADIA_API_KEY }}
- uses: actions/upload-pages-artifact@v5
with:
path: dist
deploy:
needs: build
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- id: deployment
uses: actions/deploy-pages@v5