diff --git a/.github/workflows/publish-to-pypi.yml b/.github/workflows/publish-to-pypi.yml index 1edf550..dfff3c3 100644 --- a/.github/workflows/publish-to-pypi.yml +++ b/.github/workflows/publish-to-pypi.yml @@ -1,6 +1,9 @@ name: Publish Python 🐍 distributions 📦 to PyPI and TestPyPI -on: push +on: + push: + branches: + - master jobs: build-n-publish: name: Build and publish Python 🐍 distributions 📦 to PyPI and TestPyPI @@ -30,6 +33,7 @@ jobs: with: password: ${{ secrets.test_pypi_password }} repository_url: https://test.pypi.org/legacy/ + skip_existing: true - name: Publish distribution 📦 to PyPI if: startsWith(github.ref, 'refs/tags') uses: pypa/gh-action-pypi-publish@master