From 404e8ac82ef4114c5e9096629b7bf32c97413e01 Mon Sep 17 00:00:00 2001 From: Ram Date: Wed, 13 Mar 2024 23:34:13 +0530 Subject: [PATCH] Update publish-to-test-pypi-and-pypi.yaml --- .github/workflows/publish-to-test-pypi-and-pypi.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish-to-test-pypi-and-pypi.yaml b/.github/workflows/publish-to-test-pypi-and-pypi.yaml index 2df7c78..c20c03d 100644 --- a/.github/workflows/publish-to-test-pypi-and-pypi.yaml +++ b/.github/workflows/publish-to-test-pypi-and-pypi.yaml @@ -3,6 +3,8 @@ on: workflow_dispatch: push: + tags: + - '*' paths-ignore: - 'README.md' - '.gitignore' @@ -44,7 +46,7 @@ jobs: repository_url: https://test.pypi.org/legacy/ - name: Publish distribution 📦 to PyPI - if: startsWith(github.ref, 'refs/tags') + if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags') uses: pypa/gh-action-pypi-publish@release/v1 with: password: ${{ secrets.PYPI_API_TOKEN }}