Skip to content

Commit

Permalink
Only upload to PyPi on release, not any 'published' event
Browse files Browse the repository at this point in the history
  • Loading branch information
Baekalfen committed Oct 19, 2023
1 parent bf19b85 commit 93c129c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/pr-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ jobs:
pip install --prefer-binary -r requirements_tests.txt
python -m pytest tests/ -n2 -v
- name: Build and upload wheel
if: ${{ github.event_name == 'release' && github.event.action == 'published' && !contains(matrix.os, 'ubuntu') }}
if: ${{ github.event_name == 'release' && github.event.action == 'released' && !contains(matrix.os, 'ubuntu') }}
run: |
echo "Building wheel and uploading"
pip install wheel twine
Expand Down Expand Up @@ -171,7 +171,7 @@ jobs:
with:
python-version: 3.8
- name: Upload wheel
if: ${{ github.event_name == 'release' && github.event.action == 'published' }}
if: ${{ github.event_name == 'release' && github.event.action == 'released' }}
run: |
echo "Uploading wheel"
pip install twine
Expand Down

0 comments on commit 93c129c

Please sign in to comment.