We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a43ac15 commit f416656Copy full SHA for f416656
1 file changed
.github/workflows/build-publish.yaml
@@ -9,6 +9,13 @@ on:
9
- main
10
tags:
11
- 'v[0-9]+.[0-9]+.[0-9]+'
12
+ workflow_dispatch:
13
+ inputs:
14
+ branch:
15
+ description: 'Branch to publish from'
16
+ required: true
17
+ type: string
18
+ default: 'main'
19
20
jobs:
21
build:
@@ -45,7 +52,9 @@ jobs:
45
52
runs-on: ubuntu-latest
46
53
needs: build
47
54
timeout-minutes: 15
48
- if: startsWith(github.ref, 'refs/tags/v')
55
+ if: |
56
+ startsWith(github.ref, 'refs/tags/v') ||
57
+ github.event_name == 'workflow_dispatch'
49
58
strategy:
50
59
matrix:
51
60
package:
@@ -123,7 +132,9 @@ jobs:
123
132
124
133
needs: publish
125
134
timeout-minutes: 5
126
135
136
+ startsWith(github.ref, 'refs/tags/v') &&
137
+ github.event_name != 'workflow_dispatch'
127
138
permissions:
128
139
contents: write
129
140
steps:
0 commit comments