Feat: add web build workflow on push

This commit is contained in:
2026-03-10 18:42:08 -07:00
parent 5f54c68369
commit 3d5fc7ae10

26
.github/workflows/build-web.yml vendored Normal file
View File

@@ -0,0 +1,26 @@
name: Build Web
on:
push:
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- run: bun install
- run: bun run build:web
- name: Commit and push dist/web
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git add dist/web -f
git diff --cached --quiet || git commit -m "build: web"
git push