Skip to content

Commit

Permalink
CI: Do not complain on duplicates for test upload, publish on tags
Browse files Browse the repository at this point in the history
  • Loading branch information
effigies committed Jan 6, 2021
1 parent af64352 commit 7d561c2
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/stable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -124,3 +124,10 @@ jobs:
user: __token__
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
repository_url: https://test.pypi.org/legacy/
skip_existing: true
- name: Upload to PyPI (on tags)
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@master
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}

0 comments on commit 7d561c2

Please sign in to comment.