Skip to content

Commit

Permalink
ci update
Browse files Browse the repository at this point in the history
  • Loading branch information
mdavidsaver committed Jun 19, 2022
1 parent 324caa1 commit 5feb841
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -392,16 +392,24 @@ jobs:
name: p4p
path: dist/*

- name: Check wheels
if: ${{ !matrix.base && !matrix.source }}
run: python -m twine check dist/p4p*.whl

- name: Check source
if: ${{ matrix.source && !matrix.base }}
run: python -m twine check dist/p4p*.tar.*

- name: Upload wheels
if: github.event_name=='push' && github.ref=='refs/heads/master' && !matrix.base && !matrix.source
if: github.event_name=='push' && github.repository=='mdavidsaver/p4p' && github.ref=='refs/heads/master' && !matrix.base && !matrix.source
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
python -m twine upload --skip-existing dist/p4p*.whl
- name: Upload source
if: github.event_name=='push' && github.ref=='refs/heads/master' && matrix.source && !matrix.base
if: github.event_name=='push' && github.repository=='mdavidsaver/p4p' && github.ref=='refs/heads/master' && matrix.source && !matrix.base
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
Expand Down

0 comments on commit 5feb841

Please sign in to comment.