Skip to content

Commit 14a9d59

Browse files
authored
Add files via upload
1 parent 4042432 commit 14a9d59

1 file changed

Lines changed: 54 additions & 0 deletions

File tree

.github/workflows/site-deploy.yml

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
name: Deploy site to GitHub Pages
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
paths:
8+
- 'site/**'
9+
- '.github/workflows/site-deploy.yml'
10+
workflow_dispatch:
11+
12+
permissions:
13+
contents: read
14+
pages: write
15+
id-token: write
16+
17+
# Allow one concurrent deployment, but cancel any in-flight run when a new push
18+
# arrives so we don't ship stale content if two pushes land back-to-back.
19+
concurrency:
20+
group: pages
21+
cancel-in-progress: true
22+
23+
jobs:
24+
build:
25+
runs-on: ubuntu-latest
26+
defaults:
27+
run:
28+
working-directory: site
29+
steps:
30+
- uses: actions/checkout@v4
31+
- uses: actions/setup-node@v4
32+
with:
33+
node-version: '22'
34+
cache: 'npm'
35+
cache-dependency-path: site/package-lock.json
36+
- run: npm ci
37+
- run: npm run build
38+
env:
39+
# Higher rate limit when querying the Releases API at build time.
40+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
41+
- uses: actions/configure-pages@v5
42+
- uses: actions/upload-pages-artifact@v3
43+
with:
44+
path: site/dist
45+
46+
deploy:
47+
needs: build
48+
runs-on: ubuntu-latest
49+
environment:
50+
name: github-pages
51+
url: ${{ steps.deployment.outputs.page_url }}
52+
steps:
53+
- id: deployment
54+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)