From d914903a56b07dd7bcc14cb290b4b12897baa6fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20Gl=C3=A4=C3=9Fle?= Date: Sat, 28 Dec 2024 00:25:52 +0100 Subject: [PATCH] Release to test-pypi on branch 'test-release' --- .github/workflows/build.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 008816ea..dd4a1794 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -372,7 +372,6 @@ jobs: name: Upload release needs: test runs-on: ubuntu-latest - if: startsWith(github.ref, 'refs/tags/v') environment: name: pypi @@ -392,6 +391,13 @@ jobs: - name: Publish PyPI package uses: pypa/gh-action-pypi-publish@release/v1 + if: startsWith(github.ref, 'refs/tags/v') + + - name: Publish TestPyPI package + uses: pypa/gh-action-pypi-publish@release/v1 + if: github.ref == 'refs/heads/test-release' + with: + repository-url: https://test.pypi.org/legacy/ - name: Create GitHub Release uses: softprops/action-gh-release@v2