summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBigCoke233 <hi@guhub.cn>2026-01-06 10:06:21 +0800
committerBigCoke233 <hi@guhub.cn>2026-01-06 10:06:21 +0800
commit92ba2fa376a1ddf1d42544ee3aba3e2d3ec736fd (patch)
tree8c1d80d85fdc8a8564ac045ee27f451f1ab71ced
parent385e36dbef14d6a3d24685dc032a70c3d0d16b8b (diff)
chore(actions): build UnoCSS on git push
-rw-r--r--.github/workflows/build-unocss.yml35
1 files changed, 35 insertions, 0 deletions
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