Skip to content

Commit 5a38e50

Browse files
committed
feat: add build and deploy workflow for GitHub Actions
1 parent c9539f7 commit 5a38e50

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

.github/workflows/build.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Build and Deploy
2+
3+
on:
4+
push:
5+
branches: ["main"]
6+
pull_request:
7+
branches: ["main"]
8+
workflow_dispatch:
9+
10+
jobs:
11+
build-and-deploy:
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- name: Checkout 🛎️
16+
uses: actions/checkout@v3
17+
18+
- name: Setup Bun
19+
uses: oven-sh/setup-bun@v1
20+
with:
21+
bun-version: latest
22+
23+
- name: Install Dependencies 📦
24+
run: bun install
25+
26+
- name: Build 🔧
27+
run: bun run build
28+
working-directory: ./web
29+
env:
30+
VITE_BACKEND_URL: http://103.14.23.66:9999
31+
32+
- name: Deploy 🚀
33+
uses: JamesIves/github-pages-deploy-action@v4
34+
with:
35+
branch: gh-pages
36+
folder: web/dist
37+
clean: true

0 commit comments

Comments
 (0)