From aaeddb5ae6d0e1d32bcdabc5a11b9e836a5f08ed Mon Sep 17 00:00:00 2001 From: Djoyke Reijans <115019123+DjoykeAbyah@users.noreply.github.com> Date: Mon, 11 Nov 2024 14:39:31 +0000 Subject: [PATCH] adjusted publish.yml to publish specific tag --- .github/workflows/pypipublish.yml | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/.github/workflows/pypipublish.yml b/.github/workflows/pypipublish.yml index 0d085e09..2aeb1d28 100644 --- a/.github/workflows/pypipublish.yml +++ b/.github/workflows/pypipublish.yml @@ -1,8 +1,13 @@ name: Publish Python +# on: +# release: +# types: [published] + on: - release: - types: [published] + push: + tags: + - 'v*' # Only triggers on tags starting with 'v', like 'v1.0.0' jobs: tests: @@ -34,11 +39,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: