From 1b385db837c72dee82a791997875c32d7afe9b13 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 13b4b7c9..5a93cd27 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -370,7 +370,6 @@ jobs: name: Upload release needs: test runs-on: ubuntu-latest - if: startsWith(github.ref, 'refs/tags/v') environment: name: pypi @@ -391,6 +390,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