Skip to content

Commit c71193c

Browse files
committed
Fix PyPI upload job not running on tag-triggered releases
1 parent ed5e483 commit c71193c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.github/workflows/build-wheels.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,7 @@ jobs:
248248
249249
upload_pypi:
250250
needs: [build_wheels, test_sdist]
251+
if: always() && (startsWith(github.ref, 'refs/tags/') || inputs.test_pypi) && needs.build_wheels.result == 'success' && needs.test_sdist.result == 'success'
251252
runs-on: ubuntu-latest
252253
environment: pypi
253254
permissions:

0 commit comments

Comments
 (0)