mirror of
https://github.com/planetrenox/inzerosight.git
synced 2026-03-16 18:51:02 +00:00
Feat: add web build workflow on push
This commit is contained in:
26
.github/workflows/build-web.yml
vendored
Normal file
26
.github/workflows/build-web.yml
vendored
Normal 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
|
||||
Reference in New Issue
Block a user