Skip to content

Commit

Permalink
feat, ci: skip existing distros on test pypi
Browse files Browse the repository at this point in the history
This helps us avoid a race condition when a tag is pushed before the
`main` build is done.
  • Loading branch information
gadomski committed Dec 21, 2021
1 parent 2033a27 commit db9e892
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ jobs:
user: __token__
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
repository_url: https://test.pypi.org/legacy/
skip_existing: true
- name: Publish to PyPI
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@release/v1
Expand Down

0 comments on commit db9e892

Please sign in to comment.