Skip to content

Commit

Permalink
Publish to PyPi on release
Browse files Browse the repository at this point in the history
  • Loading branch information
Baekalfen committed Jul 23, 2021
1 parent 2512c57 commit b7975cb
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 @@ -53,7 +53,7 @@ jobs:
run: |
python setup.py test
- name: Build and upload wheel
if: ${{ github.event_name == 'release' && github.event.action == 'published' && github.head_ref == 'master' && !contains(matrix.os, 'linux') }}
if: ${{ github.event_name == 'release' && github.event.action == 'published' && !contains(matrix.os, 'linux') }}
run: |
echo "Building wheel and uploading"
pip install wheel twine
Expand Down Expand Up @@ -169,7 +169,7 @@ jobs:
with:
python-version: 3.8
- name: Upload wheel
if: ${{ github.event_name == 'release' && github.event.action == 'published' && github.head_ref == 'master' }}
if: ${{ github.event_name == 'release' && github.event.action == 'published' }}
run: |
echo "Uploading wheel"
pip install twine
Expand Down

0 comments on commit b7975cb

Please sign in to comment.