Skip to content

Commit cab09ba

Browse files
committed
feat: add deploy stuff
1 parent 2754284 commit cab09ba

3 files changed

Lines changed: 26 additions & 1 deletion

File tree

.github/workflows/deploy.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
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

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
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"

vite.config.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
1-
import path from "node:path";
21
import tailwindcss from "@tailwindcss/vite";
32
import react from "@vitejs/plugin-react";
3+
import path from "node:path";
44
import { defineConfig } from "vite";
55

66
// https://vite.dev/config/
77
export default defineConfig({
8+
base: "/jwp-debugger/",
89
plugins: [react(), tailwindcss()],
910
resolve: {
1011
alias: {

0 commit comments

Comments
 (0)