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 f288e4c commit dcc7917Copy full SHA for dcc7917
1 file changed
.github/workflows/publish2.yml
@@ -221,9 +221,14 @@ jobs:
221
name: "Publish all wheels to PyPI + GH Release"
222
needs: [build-wheels, build-noarch]
223
runs-on: ubuntu-latest
224
+ if: |
225
+ startsWith(inputs.ref, 'v') &&
226
+ !cancelled() &&
227
+ (needs.build-wheels.result == 'success' || needs.build-wheels.result == 'failure') &&
228
+ needs.build-noarch.result == 'success'
229
# Only publish when ref looks like a version tag (v3.1.1, v2.5.0, etc.).
230
# Running from main, a branch, or a bare SHA -> skipped automatically.
- if: startsWith(inputs.ref, 'v')
231
+ if: startsWith(inputs.ref, 'v') && !cancelled()
232
permissions:
233
contents: write # required to upload assets to the GH Release
234
id-token: write # required for PyPI trusted publishing (OIDC)
0 commit comments