@@ -279,7 +279,7 @@ jobs:
279279 run : gh release upload "v${VERSION}" "$DMG_PATH" --clobber
280280
281281 - name : Upload updater archive to rolling release
282- if : github.event_name == 'push'
282+ if : github.event_name == 'push' || (github.event_name == 'workflow_dispatch' && inputs.ref == format('v{0}', inputs.version))
283283 run : |
284284 gh release upload buzz-desktop-latest \
285285 "$ARCHIVE_PATH" \
@@ -428,7 +428,7 @@ jobs:
428428 DMG_PATH : ${{ steps.unsigned.outputs.dmg }}
429429
430430 - name : Upload updater archive to rolling release
431- if : github.event_name == 'push'
431+ if : github.event_name == 'push' || (github.event_name == 'workflow_dispatch' && inputs.ref == format('v{0}', inputs.version))
432432 run : |
433433 gh release upload buzz-desktop-latest \
434434 "$ARCHIVE_PATH" \
@@ -574,7 +574,7 @@ jobs:
574574 --clobber
575575
576576 - name : Upload updater archive to rolling release
577- if : github.event_name == 'push'
577+ if : github.event_name == 'push' || (github.event_name == 'workflow_dispatch' && inputs.ref == format('v{0}', inputs.version))
578578 run : |
579579 gh release upload buzz-desktop-latest \
580580 "$ARCHIVE_PATH" \
@@ -700,7 +700,7 @@ jobs:
700700 EXE_PATH : ${{ steps.artifacts.outputs.exe }}
701701
702702 - name : Upload updater archive to rolling release
703- if : github.event_name == 'push'
703+ if : github.event_name == 'push' || (github.event_name == 'workflow_dispatch' && inputs.ref == format('v{0}', inputs.version))
704704 shell : bash
705705 run : |
706706 gh release upload buzz-desktop-latest \
@@ -714,9 +714,9 @@ jobs:
714714
715715 assemble-manifest :
716716 name : Assemble multi-platform latest.json
717- # Only a real tag push assembles latest.json — a branch workflow_dispatch
718- # skips the rolling-release uploads, so its archive URLs never exist.
719- if : github.event_name == 'push'
717+ # Only tag-backed releases assemble latest.json. Branch workflow_dispatch
718+ # runs skip rolling-release uploads, so their archive URLs never exist.
719+ if : github.event_name == 'push' || (github.event_name == 'workflow_dispatch' && inputs.ref == format('v{0}', inputs.version))
720720 runs-on : ubuntu-latest
721721 needs : [setup, release, release-macos-x64, release-linux, release-windows]
722722 timeout-minutes : 10
0 commit comments