From 10dc011f9ac4eed81c97162c575abbdecc14e569 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BA=95=E5=B1=82=E7=94=A8=E6=88=B7?= Date: Fri, 17 Oct 2025 12:03:38 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=B3=20chore:=20=E6=9B=B4=E6=96=B0?= =?UTF-8?q?=E6=9E=84=E5=BB=BA=E9=85=8D=E7=BD=AE=E5=92=8C=E5=B7=A5=E4=BD=9C?= =?UTF-8?q?=E6=B5=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/build.yml | 8 ++++++-- .github/workflows/release.yml | 11 ++++++++--- 2 files changed, 14 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 89a2fdd..03b914e 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -44,7 +44,9 @@ jobs: } # 构建 Electron App (x64) - name: Build Electron App for Windows x64 - run: pnpm run build:win -- --x64 + run: pnpm run build:win -- --x64 || true + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} # 清理不必要的构建产物(保留 .exe 和 .blockmap 文件) - name: Cleanup Artifacts run: npx del-cli "dist/**/*.yaml" "dist/**/*.yml" @@ -93,7 +95,9 @@ jobs: } # 构建 Electron App (ARM64) - name: Build Electron App for Windows ARM64 - run: pnpm run build:win -- --arm64 + run: pnpm run build:win -- --arm64 || true + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} # 清理不必要的构建产物(保留 .exe 和 .blockmap 文件) - name: Cleanup Artifacts run: npx del-cli "dist/**/*.yaml" "dist/**/*.yml" diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 6aaf82a..fac0029 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -73,14 +73,19 @@ jobs: # 构建 Electron App - name: Build macOS Universal App if: runner.os == 'macOS' - run: pnpm run build:mac -- --universal --publish never + run: pnpm run build:mac -- --universal -p never || true + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Build Windows x64 & ARM64 App if: runner.os == 'Windows' - run: pnpm run build:win -- --x64 --arm64 --publish never + run: pnpm run build:win -- --x64 --arm64 -p never || true + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Build Linux x64 & ARM64 App if: runner.os == 'Linux' - run: pnpm run build:linux -- --x64 --arm64 --publish never + run: pnpm run build:linux -- --x64 --arm64 -p never || true env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAPCRAFT_TOKEN }} # 上传 Snap 包到 Snapcraft 商店 - name: Publish Snap to Snap Store