From b71e9454e0c994ec252cc03513d6411ad23d99a9 Mon Sep 17 00:00:00 2001 From: Steve Phelps Date: Wed, 17 May 2023 15:44:23 +0100 Subject: [PATCH] only publish if tagged --- .github/workflows/python-publish.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml index bf0349b..916d9a7 100644 --- a/.github/workflows/python-publish.yml +++ b/.github/workflows/python-publish.yml @@ -45,4 +45,5 @@ jobs: --outdir dist/ . - name: Publish package distributions to PyPI + if: startsWith(github.ref, 'refs/tags') uses: pypa/gh-action-pypi-publish@release/v1 \ No newline at end of file