Skip to content

Commit 32dd29b

Browse files
authored
fix(workflow): maturin release only on python package tagging (#4)
1 parent 4fd76cf commit 32dd29b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/maturin.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,9 @@ jobs:
232232
release:
233233
name: Release
234234
runs-on: ubuntu-latest
235-
if: ${{ startsWith(github.ref, 'refs/tags/') || github.event_name == 'workflow_dispatch' }}
235+
# We wanna push python package only when pyfaup-rs is upgraded otherwise
236+
# PyPi will complain the version already exists
237+
if: ${{ startsWith(github.ref, 'refs/tags/pyfaup-rs') || github.event_name == 'workflow_dispatch' }}
236238
needs: [linux, musllinux, windows, macos, sdist]
237239
permissions:
238240
# Use to sign the release artifacts

0 commit comments

Comments
 (0)