From 13e1b0871ad2842c6beff0dd6099f1d7ce1a3441 Mon Sep 17 00:00:00 2001 From: multipleof4 Date: Thu, 26 Feb 2026 13:52:22 -0800 Subject: [PATCH] Feat: Build and auto-commit dist on push --- .github/workflows/build-dist.yml | 39 ++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 .github/workflows/build-dist.yml diff --git a/.github/workflows/build-dist.yml b/.github/workflows/build-dist.yml new file mode 100644 index 0000000..e8aed80 --- /dev/null +++ b/.github/workflows/build-dist.yml @@ -0,0 +1,39 @@ +name: Build and Commit dist + +on: + push: + branches: + - "**" + workflow_dispatch: + +permissions: + contents: write + +jobs: + build: + if: github.actor != 'github-actions[bot]' + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - name: Setup Node + uses: actions/setup-node@v4 + with: + node-version: 20 + cache: npm + + - name: Install dependencies + run: npm ci + + - name: Build site + run: npm run build + + - name: Commit dist directory + uses: stefanzweifel/git-auto-commit-action@v5 + with: + commit_message: "chore(build): update dist [skip ci]" + file_pattern: dist/**