From f4abe57341052d9ef0de45aab11dfb9733191456 Mon Sep 17 00:00:00 2001 From: Matt Shirley Date: Tue, 26 Jul 2022 12:24:50 -0400 Subject: [PATCH] Don't upload tagged releases to test pypi --- .github/workflows/pypi.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pypi.yml b/.github/workflows/pypi.yml index 4931557..fb307fa 100644 --- a/.github/workflows/pypi.yml +++ b/.github/workflows/pypi.yml @@ -25,12 +25,13 @@ jobs: run: python setup.py sdist - name: Publish to test PyPI + if: startsWith(github.ref, 'refs/tags') != true uses: pypa/gh-action-pypi-publish@master with: password: ${{ secrets.test_pypi_password }} repository_url: https://test.pypi.org/legacy/ - - name: Publish to tagged release to PyPI + - name: Publish tagged release to PyPI if: startsWith(github.ref, 'refs/tags') uses: pypa/gh-action-pypi-publish@master with: