Skip to content

Commit

Permalink
twine: need --skip-existing when uploading distributions as have para…
Browse files Browse the repository at this point in the history
…llelised matrix jobs
  • Loading branch information
willfurnass committed Jun 2, 2020
1 parent fe1f865 commit 12b90f1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/test-and-release.yml
Expand Up @@ -52,10 +52,10 @@ jobs:
TWINE_PASSWORD: ${{ secrets.test_pypi_password }}
run: |
twine check dist/*
twine upload --repository testpypi dist/*
twine upload --skip-existing --repository testpypi dist/*
- name: Publish distributions to PyPI if this is a tagged commit
if: success() && github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.pypi_password }}
run: twine upload dist/*
run: twine upload --skip-existing dist/*

0 comments on commit 12b90f1

Please sign in to comment.