Skip to content

Commit bcade56

Browse files
authored
Fix publish.yml (#60)
1 parent 34eee7c commit bcade56

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/publish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ name: Publish to PyPI
77

88
on:
99
release:
10-
types: [published]
10+
types: [published, prereleased]
1111

1212
permissions:
1313
contents: read
@@ -82,7 +82,7 @@ jobs:
8282
with:
8383
subject-path: "wheels-*/*"
8484
- name: Publish to PyPI
85-
if: ${{ startsWith(github.ref, 'refs/tags/') }}
85+
if: ${{ startsWith(github.event.release.tag_name, 'v') }}
8686
uses: PyO3/maturin-action@v1
8787
env:
8888
MATURIN_PYPI_TOKEN: ${{ secrets.PYPI_API_TOKEN }}

0 commit comments

Comments
 (0)