From 15deca7bea71ab495cbb269f788a9fdb338bbb6e Mon Sep 17 00:00:00 2001 From: bincxz <16399091+binaricat@users.noreply.github.com> Date: Tue, 30 Dec 2025 02:20:57 +0800 Subject: [PATCH] Prevents publishing during macOS and Windows builds Sets the environment variable to disable publishing artifacts when building for macOS and Windows. Ensures builds do not accidentally trigger publish actions in CI environments. --- .github/workflows/build.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 020b8ca8a..d356887ac 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -38,10 +38,13 @@ jobs: if: matrix.os == 'macos-latest' env: CSC_IDENTITY_AUTO_DISCOVERY: "false" + ELECTRON_BUILDER_PUBLISH: "never" run: npm run pack:mac - name: Build package (Windows) if: matrix.os == 'windows-latest' + env: + ELECTRON_BUILDER_PUBLISH: "never" run: npm run pack:win - name: Upload artifacts