diff --git a/.github/workflows/pypi-publish.yml b/.github/workflows/pypi-publish.yml index 99d22d7..3c33e25 100644 --- a/.github/workflows/pypi-publish.yml +++ b/.github/workflows/pypi-publish.yml @@ -1,9 +1,8 @@ name: Publish package to PyPI on: - push: - tags: - - "v*.*.*" + release: + types: [published] jobs: pypi_publish: diff --git a/.github/workflows/pypi-test.yml b/.github/workflows/pypi-test.yml deleted file mode 100644 index 4a91b89..0000000 --- a/.github/workflows/pypi-test.yml +++ /dev/null @@ -1,21 +0,0 @@ -name: Publish package to test.pypi - -on: - push: - tags: - - "v*.*.*.dev*" - - "v*.*.*.post*" - - "v*.*.*.rc*" - - "v*.*.*.a*" - - "v*.*.*.b*" - -jobs: - pypi_test_publish: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - uses: JRubics/poetry-publish@v2.0 - with: - pypi_token: ${{ secrets.TEST_PYPI_TOKEN }} - repository_name: "testpypi" - repository_url: "https://test.pypi.org/legacy/"