Skip to content

Commit 591c80e

Browse files
committed
Fix publish job conditions
1 parent ef5abec commit 591c80e

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

.github/workflows/build.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,14 @@ on:
44
push:
55
branches:
66
- master
7+
tags:
8+
- '*'
79
pull_request:
810
workflow_dispatch:
11+
inputs:
12+
publish:
13+
required: true
14+
type: boolean
915

1016
jobs:
1117
build-non-windows-wheel:
@@ -105,7 +111,7 @@ jobs:
105111
path: dist/*.whl
106112

107113
publish:
108-
if: ${{ startsWith(github.ref, 'refs/tags/') }}
114+
if: ${{ inputs.publish || startsWith(github.ref, 'refs/tags/') }}
109115
needs: [build-non-windows-wheel, build-windows-wheel]
110116
runs-on: ubuntu-latest
111117
environment:

0 commit comments

Comments
 (0)