ci: name release and only draft for branch build
This commit is contained in:
3
.github/workflows/electron.yml
vendored
3
.github/workflows/electron.yml
vendored
@@ -83,7 +83,8 @@ jobs:
|
|||||||
- name: Create Release
|
- name: Create Release
|
||||||
uses: softprops/action-gh-release@v2
|
uses: softprops/action-gh-release@v2
|
||||||
with:
|
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: |
|
files: |
|
||||||
dist/*.exe
|
dist/*.exe
|
||||||
dist/*.dmg
|
dist/*.dmg
|
||||||
|
|||||||
Reference in New Issue
Block a user