From 2dc3961ae8983363ace7f5b85cda59e470e275d3 Mon Sep 17 00:00:00 2001 From: Derek Wang Date: Sat, 29 Mar 2025 16:31:42 -0700 Subject: [PATCH] ci: name release and only draft for branch build --- .github/workflows/electron.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/electron.yml b/.github/workflows/electron.yml index 7517f6ce..2403ebba 100644 --- a/.github/workflows/electron.yml +++ b/.github/workflows/electron.yml @@ -83,7 +83,8 @@ jobs: - name: Create Release uses: softprops/action-gh-release@v2 with: - draft: ${{ github.event_name == 'workflow_dispatch' || github.ref_type == 'branch' }} + draft: ${{ github.ref_type == 'branch' }} + name: ${{ github.ref_type == 'tag' && format('Release {0}', github.ref_name) || 'Electron Release' }} files: | dist/*.exe dist/*.dmg