Skip to content

Commit 7d66936

Browse files
Oliver-Binnsobinns-ddCopilot
authored
ci: add workflow_dispatch to release-binary workflow (#46)
Allows manually triggering the binary build and upload against an existing release tag. Needed when a release is created before the workflow was present in main. Co-authored-by: Oliver Binns <obinns@deloitte.co.uk> Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent e7d0493 commit 7d66936

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

.github/workflows/release-binary.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@ name: Build Release Binary
33
on:
44
release:
55
types: [published]
6+
workflow_dispatch:
7+
inputs:
8+
tag:
9+
description: 'Release tag to upload the binary to (e.g. 1.4.6)'
10+
required: true
611

712
jobs:
813
build:
@@ -24,6 +29,6 @@ jobs:
2429
.build/x86_64-apple-macosx/release/Run
2530
2631
- name: Upload Binary to Release
27-
run: gh release upload ${{ github.event.release.tag_name }} Run
32+
run: gh release upload ${{ github.event.release.tag_name || inputs.tag }} Run
2833
env:
2934
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)