File tree Expand file tree Collapse file tree 3 files changed +77
-0
lines changed
Expand file tree Collapse file tree 3 files changed +77
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Deploy to GitHub Pages
2+
3+ on :
4+ release :
5+ types : [published]
6+ workflow_dispatch : # Allows manual trigger
7+
8+ # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
9+ permissions :
10+ contents : read
11+ pages : write
12+ id-token : write
13+
14+ # Allow only one concurrent deployment
15+ concurrency :
16+ group : " pages"
17+ cancel-in-progress : false
18+
19+ jobs :
20+ build :
21+ runs-on : ubuntu-latest
22+ steps :
23+ - name : 📥 Checkout
24+ uses : actions/checkout@v4
25+
26+ - name : � Setup Bun
27+ uses : oven-sh/setup-bun@v2
28+ with :
29+ bun-version : latest
30+
31+ - name : 📦 Install dependencies
32+ run : bun install --frozen-lockfile
33+
34+ - name : 🔨 Build
35+ run : bun run build
36+
37+ - name : 📤 Upload artifact
38+ uses : actions/upload-pages-artifact@v3
39+ with :
40+ path : ./dist
41+
42+ deploy :
43+ environment :
44+ name : github-pages
45+ url : ${{ steps.deployment.outputs.page_url }}
46+ runs-on : ubuntu-latest
47+ needs : build
48+ steps :
49+ - name : 🚀 Deploy to GitHub Pages
50+ id : deployment
51+ uses : actions/deploy-pages@v4
Original file line number Diff line number Diff line change 1+ name : Lint Check
2+
3+ on :
4+ pull_request :
5+ branches : [main]
6+ push :
7+ branches : [main]
8+
9+ jobs :
10+ lint :
11+ runs-on : ubuntu-latest
12+ steps :
13+ - name : 📥 Checkout
14+ uses : actions/checkout@v4
15+
16+ - name : 🟣 Setup Bun
17+ uses : oven-sh/setup-bun@v2
18+ with :
19+ bun-version : latest
20+
21+ - name : 📦 Install dependencies
22+ run : bun install --frozen-lockfile
23+
24+ - name : 🔍 Run Biome lint
25+ run : bun run lint
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ import { defineConfig } from "vite";
33
44// https://vite.dev/config/
55export default defineConfig ( {
6+ base : process . env . GITHUB_ACTIONS ? "/race-timer/" : "/" ,
67 plugins : [
78 react ( {
89 babel : {
You can’t perform that action at this time.
0 commit comments