fix(ci): separate release action steps for push vs workflow_dispatch in build.yml
This commit is contained in:
@@ -87,8 +87,8 @@ jobs:
|
||||
name: release-files-${{ needs.preparation.outputs.version }}
|
||||
path: ./filtered-bin/release
|
||||
|
||||
- name: Release
|
||||
if: ${{ github.event_name == 'push' || inputs.release_notes == '' }}
|
||||
- name: Release on tag push
|
||||
if: ${{ github.event_name == 'push' }}
|
||||
uses: softprops/action-gh-release@v2
|
||||
with:
|
||||
files: ./filtered-bin/release/*.*
|
||||
@@ -99,9 +99,9 @@ jobs:
|
||||
tag_name: ${{ needs.preparation.outputs.version }}
|
||||
target_commitish: ${{ needs.preparation.outputs.commitish }}
|
||||
|
||||
- name: Release with notes
|
||||
if: ${{ github.event_name == 'workflow_dispatch' && inputs.release_notes != '' }}
|
||||
uses: softprops/action-gh-release@v2.4.0
|
||||
- name: Release on workflow dispatch
|
||||
if: ${{ github.event_name == 'workflow_dispatch' }}
|
||||
uses: softprops/action-gh-release@v2
|
||||
with:
|
||||
files: ./filtered-bin/release/*.*
|
||||
draft: false
|
||||
|
||||
Reference in New Issue
Block a user