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+ name : Deploy to GitHub Pages
2+
3+ on :
4+ push :
5+ branches : [ main ]
6+
7+ jobs :
8+ build-and-deploy :
9+ runs-on : ubuntu-latest
10+ steps :
11+ - uses : actions/checkout@v4
12+ - name : Set up Bun
13+ uses : oven-sh/setup-bun@v2
14+ with :
15+ bun-version : ' latest'
16+ - name : Install dependencies
17+ run : bun install
18+ - name : Build
19+ run : bun run build
20+ - name : Deploy to GitHub Pages
21+ uses : actions/upload-pages-artifact@v3
22+ with :
23+ path : build
Original file line number Diff line number Diff line change 66 "scripts" : {
77 "dev" : " vite" ,
88 "build" : " tsc -b && vite build" ,
9+ "deploy" : " vite build && vite preview" ,
910 "check" : " biome check" ,
1011 "check:fix" : " biome check --fix ." ,
1112 "preview" : " vite preview"
Original file line number Diff line number Diff line change 1- import path from "node:path" ;
21import tailwindcss from "@tailwindcss/vite" ;
32import react from "@vitejs/plugin-react" ;
3+ import path from "node:path" ;
44import { defineConfig } from "vite" ;
55
66// https://vite.dev/config/
77export default defineConfig ( {
8+ base : "/jwp-debugger/" ,
89 plugins : [ react ( ) , tailwindcss ( ) ] ,
910 resolve : {
1011 alias : {
You can’t perform that action at this time.
0 commit comments