Skip to content

Commit

Permalink
change publish to published release
Browse files Browse the repository at this point in the history
ZeyuXuAudio committed Oct 21, 2024
1 parent d5a06c7 commit 15e300c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
@@ -83,7 +83,7 @@ jobs:
# Publish the source distribution (sdist) to PyPI from Ubuntu
- name: Publish sdist to PyPI
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/v') && matrix.os == 'ubuntu-latest'
if: github.event_name == 'release' && github.event.action == 'published' && matrix.os == 'ubuntu-latest'
uses: pypa/gh-action-pypi-publish@release/v1
with:
repository_url: https://upload.pypi.org/legacy/
@@ -93,7 +93,7 @@ jobs:

# Publish the binary distribution (bdist) to PyPI from non-Ubuntu systems
- name: Publish bdist to PyPI
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/v') && matrix.os != 'ubuntu-latest'
if: github.event_name == 'release' && github.event.action == 'published' && matrix.os != 'ubuntu-latest'
uses: pypa/gh-action-pypi-publish@release/v1
with:
repository_url: https://upload.pypi.org/legacy/

0 comments on commit 15e300c

Please sign in to comment.