File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- # .github/workflows/pages.yml
2- name : Deploy static content to Pages
1+ name : Deploy Vite site to Pages (Bun)
32
43on :
54 push :
@@ -22,26 +21,31 @@ jobs:
2221 url : ${{ steps.deployment.outputs.page_url }}
2322 runs-on : ubuntu-latest
2423 steps :
25- - name : Checkout
26- uses : actions/checkout@v5
27- - name : Set up Node
28- uses : actions /setup-node@v4
24+ - uses : actions/checkout@v4
25+
26+ - name : Setup Bun
27+ uses : oven-sh /setup-bun@v2
2928 with :
30- node -version : lts/*
31- cache : npm
29+ bun -version : latest
30+
3231 - name : Install deps
33- run : npm ci
32+ run : bun install --frozen-lockfile
33+
3434 - name : Build
35- run : npm run build
36- # (SPA routing fix; optional — see Gotchas below)
37- - name : Add 404 fallback for SPA
38- run : cp dist/index.html dist/404.html
39- - name : Setup Pages
35+ run : bun run build
36+
37+ # Optional: SPA routing fallback
38+ - name : Add 404 fallback
39+ run : cp dist/index.html dist/404.html || true
40+
41+ - name : Configure Pages
4042 uses : actions/configure-pages@v5
43+
4144 - name : Upload artifact
4245 uses : actions/upload-pages-artifact@v3
4346 with :
4447 path : ./dist
48+
4549 - name : Deploy to GitHub Pages
4650 id : deployment
4751 uses : actions/deploy-pages@v4
You can’t perform that action at this time.
0 commit comments