Skip to content

Commit

Permalink
fix: use different logic for release checking
Browse files Browse the repository at this point in the history
  • Loading branch information
tfuxu committed Sep 5, 2023
1 parent 5803f9a commit 2d166d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/build_wheel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ jobs:
environment: pypi-upload
permissions:
id-token: write
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
if: github.event_name == 'release' && github.event.action == 'published'
steps:
- name: Get source distribution
uses: actions/download-artifact@v3
Expand Down

0 comments on commit 2d166d6

Please sign in to comment.