From db9e8923b133f57d55c9df31e59eed737d4fa423 Mon Sep 17 00:00:00 2001 From: Pete Gadomski Date: Tue, 21 Dec 2021 09:22:11 -0700 Subject: [PATCH] feat, ci: skip existing distros on test pypi This helps us avoid a race condition when a tag is pushed before the `main` build is done. --- .github/workflows/ci.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index b35094f..64ad198 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -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