We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a65b871 commit 573ce94Copy full SHA for 573ce94
.github/workflows/publish.yml
@@ -3,6 +3,12 @@ on:
3
release:
4
types:
5
- published
6
+ workflow_dispatch:
7
+ inputs:
8
+ tag:
9
+ required: true
10
+ type: string
11
+ description: Tag name to release
12
13
jobs:
14
publish:
@@ -16,6 +22,15 @@ jobs:
16
22
steps:
17
23
- name: 'Checkout repository'
18
24
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
33
+ ref: ${{ github.event.inputs.tag }}
19
34
20
35
- name: 'Install Python'
21
36
uses: actions/setup-python@v5
0 commit comments