From c0e25c8678e1baf186d5fdaa358d6d36dab7bfaf Mon Sep 17 00:00:00 2001 From: BigCoke233 Date: Tue, 6 Jan 2026 10:06:21 +0800 Subject: chore(actions): build UnoCSS on git push Former-commit-id: 92ba2fa376a1ddf1d42544ee3aba3e2d3ec736fd --- .github/workflows/build-unocss.yml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/build-unocss.yml (limited to '.github') diff --git a/.github/workflows/build-unocss.yml b/.github/workflows/build-unocss.yml new file mode 100644 index 00000000..b6768411 --- /dev/null +++ b/.github/workflows/build-unocss.yml @@ -0,0 +1,35 @@ +name: Build UnoCSS + +on: + push: + +jobs: + build-uno: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + + - uses: pnpm/action-setup@v4 + with: + version: 9 + + - uses: actions/setup-node@v4 + with: + node-version: 20 + cache: pnpm + + - name: Install deps + run: pnpm install --frozen-lockfile + + - name: Build UnoCSS + run: pnpm run build:uno:prod + + - name: Commit if changed + run: | + git config user.name "github-actions[bot]" + git config user.email "41898282+github-actions[bot]@users.noreply.github.com" + + git add . + git commit -m "chore(unocss): rebuild styles" || exit 0 + git push -- cgit v1.2.3