Skip to content

Commit f2bf6c2

Browse files
committed
build: add dispatch
1 parent 860ca89 commit f2bf6c2

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.github/workflows/publish-release-packages.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@ on:
77
required: true
88
type: string
99
description: "The github artifact holding the wheel file which will be published"
10+
workflow_dispatch:
11+
inputs:
12+
release:
13+
required: true
14+
type: string
15+
description: "The github release which will be published"
1016
secrets:
1117
tapTokenOverride:
1218
required: false
@@ -19,7 +25,13 @@ jobs:
1925
- name: Checkout source code
2026
uses: actions/checkout@v3
2127

28+
# Download either via release or provided artifact
29+
- name: Download release
30+
if: ${{ github.event_name == 'workflow_dispatch' }}
31+
run: gh release download ${{ inputs.release }} --pattern "*.whl" --dir dist
32+
2233
- name: Download artifact
34+
if: ${{ github.event_name == 'workflow_call' }}
2335
uses: actions/download-artifact@v3
2436
with:
2537
name: ${{ inputs.artifactName }}

0 commit comments

Comments
 (0)