diff --git a/.github/workflows/build-web.yml b/.github/workflows/build-web.yml new file mode 100644 index 0000000..4f3f37e --- /dev/null +++ b/.github/workflows/build-web.yml @@ -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