From 1d2133b49deaaf7f11359dad138fbf809d87ff06 Mon Sep 17 00:00:00 2001 From: rohow Date: Wed, 21 Jan 2026 18:00:22 +0800 Subject: [PATCH] =?UTF-8?q?fix(cd):=20=E7=AE=80=E5=8C=96cd=E9=85=8D?= =?UTF-8?q?=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/theme-cd.yaml | 48 +++++++++++++++++++++++++++------ 1 file changed, 40 insertions(+), 8 deletions(-) diff --git a/.github/workflows/theme-cd.yaml b/.github/workflows/theme-cd.yaml index 5f61177..51e60aa 100644 --- a/.github/workflows/theme-cd.yaml +++ b/.github/workflows/theme-cd.yaml @@ -6,11 +6,43 @@ on: - published jobs: - cd: - uses: https://github.com/halo-sigs/reusable-workflows/.github/workflows/theme-cd.yaml@v3 - permissions: - contents: write - with: - skip-appstore-release: true - node-version: 22 - pnpm-version: 10 \ No newline at end of file + package: + name: Package Theme + runs-on: ubuntu-latest + if: github.event_name == 'release' + steps: + - uses: actions/checkout@v4 + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: 22 + - name: Setup pnpm + uses: pnpm/action-setup@v3 + with: + version: 10 + - name: Install dependencies + run: pnpm install + - name: Build + run: pnpm build + - name: Upload Artifacts + uses: actions/upload-artifact@v4 + with: + name: theme-package + path: dist + + release: + name: Release + runs-on: ubuntu-latest + needs: package + if: github.event_name == 'release' + steps: + - uses: actions/checkout@v4 + - name: Download Artifacts + uses: actions/download-artifact@v4 + with: + name: theme-package + path: dist + - name: Upload Release Assets + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: gh release upload ${{ github.event.release.tag_name }} dist/* \ No newline at end of file