Skip to content

Commit 8a4e6b3

Browse files
committed
Only push latest releases to Pypi
1 parent 1df5186 commit 8a4e6b3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/publish.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ jobs:
3838
name: Publish to PyPI
3939
needs: [build_sdist_and_wheel] # Ensure the build job succeeds first
4040
runs-on: ubuntu-latest
41+
# Only publish to PyPI for full releases (not pre-releases)
42+
if: github.event.release.prerelease == false
4143

4244
# 2. Use the environment name you configured in PyPI (Optional, but recommended)
4345
environment: pypi

0 commit comments

Comments
 (0)