ci: name release and only draft for branch build

This commit is contained in:
Derek Wang 2025-03-29 16:31:42 -07:00
parent 47444970e8
commit 2dc3961ae8

View File

@ -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