diff --git a/.github/workflows/test-and-publish.yml b/.github/workflows/test-and-publish.yml index bd527f9..3733e29 100644 --- a/.github/workflows/test-and-publish.yml +++ b/.github/workflows/test-and-publish.yml @@ -56,10 +56,9 @@ jobs: pytest - name: Build and publish to PyPI - if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/') + if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/') && matrix.python-version == '3.12' uses: pypa/gh-action-pypi-publish@v1.4.2 with: user: domain-connect password: ${{ secrets.PYPI_PASSWORD }} - distributions: "sdist bdist_wheel" skip_existing: true