Skip to content

Commit 71a6df8

Browse files
committed
Add GH pages action so we can serve web + pwa!
1 parent b2d9f18 commit 71a6df8

2 files changed

Lines changed: 58 additions & 2 deletions

File tree

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Run Type Check
1+
name: Run Type and Format Checks
22

33
on:
44
push:
@@ -24,7 +24,7 @@ jobs:
2424
- name: Setup Node.js
2525
uses: actions/setup-node@v6
2626
with:
27-
node-version: "26.4.0"
27+
node-version: 26
2828
cache: "pnpm"
2929

3030
- name: Type check

.github/workflows/deploy-web.yaml

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
name: Build and Deploy Site to Pages
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
branches: ["main"]
7+
8+
permissions:
9+
contents: read
10+
pages: write
11+
id-token: write
12+
13+
concurrency:
14+
group: "pages"
15+
cancel-in-progress: false
16+
17+
jobs:
18+
build:
19+
runs-on: ubuntu-latest
20+
steps:
21+
- name: Checkout repository
22+
uses: actions/checkout@v7
23+
24+
- name: Set up pnpm
25+
uses: pnpm/action-setup@v6
26+
with:
27+
cache: true
28+
run_install: true
29+
30+
- name: Set up Node.js
31+
uses: actions/setup-node@v6
32+
with:
33+
node-version: 26
34+
cache: "pnpm"
35+
36+
- name: Setup Pages
37+
uses: actions/configure-pages@v6
38+
39+
- name: Build
40+
run: pnpm build:web
41+
42+
- name: Upload artifact
43+
uses: actions/upload-pages-artifact@v5
44+
with:
45+
path: ./dist
46+
47+
deploy:
48+
environment:
49+
name: github-pages
50+
url: ${{ steps.deployment.outputs.page_url }}
51+
runs-on: ubuntu-latest
52+
needs: build
53+
steps:
54+
- name: Deploy to GitHub Pages
55+
id: deployment
56+
uses: actions/deploy-pages@v5

0 commit comments

Comments
 (0)