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 }}
|
name: release-files-${{ needs.preparation.outputs.version }}
|
||||||
path: ./filtered-bin/release
|
path: ./filtered-bin/release
|
||||||
|
|
||||||
- name: Release
|
- name: Release on tag push
|
||||||
if: ${{ github.event_name == 'push' || inputs.release_notes == '' }}
|
if: ${{ github.event_name == 'push' }}
|
||||||
uses: softprops/action-gh-release@v2
|
uses: softprops/action-gh-release@v2
|
||||||
with:
|
with:
|
||||||
files: ./filtered-bin/release/*.*
|
files: ./filtered-bin/release/*.*
|
||||||
@@ -99,9 +99,9 @@ jobs:
|
|||||||
tag_name: ${{ needs.preparation.outputs.version }}
|
tag_name: ${{ needs.preparation.outputs.version }}
|
||||||
target_commitish: ${{ needs.preparation.outputs.commitish }}
|
target_commitish: ${{ needs.preparation.outputs.commitish }}
|
||||||
|
|
||||||
- name: Release with notes
|
- name: Release on workflow dispatch
|
||||||
if: ${{ github.event_name == 'workflow_dispatch' && inputs.release_notes != '' }}
|
if: ${{ github.event_name == 'workflow_dispatch' }}
|
||||||
uses: softprops/action-gh-release@v2.4.0
|
uses: softprops/action-gh-release@v2
|
||||||
with:
|
with:
|
||||||
files: ./filtered-bin/release/*.*
|
files: ./filtered-bin/release/*.*
|
||||||
draft: false
|
draft: false
|
||||||
|
|||||||
Reference in New Issue
Block a user