fix(ci): separate release action steps for push vs workflow_dispatch in build.yml

This commit is contained in:
Dushnilin
2026-08-09 08:59:18 +03:00
parent 54f7b5b351
commit 3eeee56f2e
+5 -5
View File
@@ -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