Skip to content

Commit 573ce94

Browse files
ci: add workflow dispatch to publish
1 parent a65b871 commit 573ce94

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

.github/workflows/publish.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@ on:
33
release:
44
types:
55
- published
6+
workflow_dispatch:
7+
inputs:
8+
tag:
9+
required: true
10+
type: string
11+
description: Tag name to release
612

713
jobs:
814
publish:
@@ -16,6 +22,15 @@ jobs:
1622
steps:
1723
- name: 'Checkout repository'
1824
uses: actions/checkout@v4
25+
if: github.event_name == 'release'
26+
with:
27+
ref: ${{ github.event.release.tag_name }}
28+
29+
- name: 'Checkout repository'
30+
uses: actions/checkout@v4
31+
if: github.event_name == 'workflow_dispatch'
32+
with:
33+
ref: ${{ github.event.inputs.tag }}
1934

2035
- name: 'Install Python'
2136
uses: actions/setup-python@v5

0 commit comments

Comments
 (0)