Skip to content

Commit 2c3380b

Browse files
authored
Fix condition for publishing based on version tag
1 parent dcc7917 commit 2c3380b

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

.github/workflows/publish2.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -228,8 +228,7 @@ jobs:
228228
needs.build-noarch.result == 'success'
229229
# Only publish when ref looks like a version tag (v3.1.1, v2.5.0, etc.).
230230
# Running from main, a branch, or a bare SHA -> skipped automatically.
231-
if: startsWith(inputs.ref, 'v') && !cancelled()
232-
permissions:
231+
= permissions:
233232
contents: write # required to upload assets to the GH Release
234233
id-token: write # required for PyPI trusted publishing (OIDC)
235234
steps:

0 commit comments

Comments
 (0)