From 3ff7ee0b6b86d32e8b8315994d819344f7a87c2d Mon Sep 17 00:00:00 2001 From: Alex Rudy Date: Wed, 27 Mar 2024 00:06:23 +0000 Subject: [PATCH] Only run testpypi uploads on tags --- .github/workflows/pypi-package.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pypi-package.yml b/.github/workflows/pypi-package.yml index 1e26a74..b47c91d 100644 --- a/.github/workflows/pypi-package.yml +++ b/.github/workflows/pypi-package.yml @@ -35,7 +35,7 @@ jobs: # Upload to Test PyPI on every commit on main. release-test-pypi: name: Publish in-dev package to test.pypi.org - if: github.repository_owner == 'alexrudy' && github.event_name == 'push' && github.ref == 'refs/heads/main' + if: github.repository_owner == 'alexrudy' && github.event_name == 'push' && github.ref_type == 'tag' environment: test-pypi-release runs-on: ubuntu-latest needs: build-package