From 1fdb575c7e1f369bbd5d5fef90e744264f9fd4b8 Mon Sep 17 00:00:00 2001 From: Derek Wang Date: Sat, 29 Mar 2025 17:08:33 -0700 Subject: [PATCH] ci: fix logic, only draft for branch build --- .github/workflows/electron.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/electron.yml b/.github/workflows/electron.yml index 2403ebb..148f9a7 100644 --- a/.github/workflows/electron.yml +++ b/.github/workflows/electron.yml @@ -83,7 +83,7 @@ jobs: - name: Create Release uses: softprops/action-gh-release@v2 with: - draft: ${{ github.ref_type == 'branch' }} + draft: ${{ github.event_name != 'workflow_dispatch' && github.ref_type == 'branch' }} name: ${{ github.ref_type == 'tag' && format('Release {0}', github.ref_name) || 'Electron Release' }} files: | dist/*.exe