ci: fix logic, only draft for branch build

This commit is contained in:
Derek Wang
2025-03-29 17:08:33 -07:00
parent 2dc3961ae8
commit 1fdb575c7e

View File

@@ -83,7 +83,7 @@ jobs:
- name: Create Release - name: Create Release
uses: softprops/action-gh-release@v2 uses: softprops/action-gh-release@v2
with: 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' }} name: ${{ github.ref_type == 'tag' && format('Release {0}', github.ref_name) || 'Electron Release' }}
files: | files: |
dist/*.exe dist/*.exe