From b0e8a141201deee34973edcd338d82f112f10bcc Mon Sep 17 00:00:00 2001 From: ILoveBingLu Date: Tue, 7 Apr 2026 00:53:56 +0800 Subject: [PATCH] fix: stabilize 4.0.0 release pipeline --- .gitattributes | 2 ++ .github/workflows/release.yml | 3 +-- scripts/run-electron-builder.cjs | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) create mode 100644 .gitattributes diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..c1d4f66 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,2 @@ +WeFlow export-ignore +WxKey-CC export-ignore diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 0c6d548..0c8ed09 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -287,8 +287,6 @@ jobs: - build-windows - build-macos - generate-release-body - env: - GH_TOKEN: ${{ secrets.GH_TOKEN }} steps: - name: Download release metadata uses: actions/download-artifact@v4 @@ -398,6 +396,7 @@ jobs: - name: Create or update GitHub Release uses: softprops/action-gh-release@v2.5.0 with: + token: ${{ secrets.GITHUB_TOKEN }} tag_name: ${{ needs.prepare-meta.outputs.tag }} name: CipherTalk v${{ needs.prepare-meta.outputs.version }} body_path: release/release-body.md diff --git a/scripts/run-electron-builder.cjs b/scripts/run-electron-builder.cjs index 70fc5c1..f180cff 100644 --- a/scripts/run-electron-builder.cjs +++ b/scripts/run-electron-builder.cjs @@ -14,7 +14,7 @@ const configPath = path.join(__dirname, 'electron-builder.config.cjs') const result = spawnSync( process.execPath, - [cliPath, `--${target}`, '--config', configPath], + [cliPath, `--${target}`, '--publish', 'never', '--config', configPath], { stdio: 'inherit', env: {