Skip to content

Commit 5928aa6

Browse files
committed
Release flow
1 parent d2b3352 commit 5928aa6

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

‎.github/workflows/python-publish.yml‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,11 @@ jobs:
141141

142142
publish-pypi:
143143
name: Publish to PyPI
144-
if: (github.event_name == 'push' && github.ref == 'refs/heads/main') || github.event_name == 'release' || (github.event_name == 'workflow_dispatch' && github.event.inputs.target == 'pypi')
144+
if: >-
145+
!cancelled() && needs.build.result == 'success' &&
146+
((github.event_name == 'push' && github.ref == 'refs/heads/main') ||
147+
github.event_name == 'release' ||
148+
(github.event_name == 'workflow_dispatch' && github.event.inputs.target == 'pypi'))
145149
needs: build
146150
runs-on: ubuntu-latest
147151
environment:

0 commit comments

Comments
 (0)