diff --git a/.github/workflows/pypipublish.yml b/.github/workflows/pypipublish.yml index 2aeb1d2..0d085e0 100644 --- a/.github/workflows/pypipublish.yml +++ b/.github/workflows/pypipublish.yml @@ -1,13 +1,8 @@ name: Publish Python -# on: -# release: -# types: [published] - on: - push: - tags: - - 'v*' # Only triggers on tags starting with 'v', like 'v1.0.0' + release: + types: [published] jobs: tests: @@ -39,11 +34,11 @@ jobs: --wheel --outdir dist/ . - # - name: Publish distribution 📦 to Test PyPI - # uses: pypa/gh-action-pypi-publish@release/v1 - # with: - # password: ${{ secrets.PYPI_TEST_KEY }} - # repository_url: https://test.pypi.org/legacy/ + - name: Publish distribution 📦 to Test PyPI + uses: pypa/gh-action-pypi-publish@release/v1 + with: + password: ${{ secrets.PYPI_TEST_KEY }} + repository_url: https://test.pypi.org/legacy/ - name: Publish distribution 📦 to PyPI uses: pypa/gh-action-pypi-publish@release/v1 with: