From 48ace25b4888e2d4f8a72bd342537bba4f1000b6 Mon Sep 17 00:00:00 2001 From: Thomas Hartmann Date: Wed, 2 Oct 2024 14:57:16 +0200 Subject: [PATCH] add testpypi upload --- .github/workflows/test.yml | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 1cf593e..92533a4 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -74,4 +74,24 @@ jobs: - uses: actions/upload-artifact@v4 with: name: pyrasa_dist - path: dist/ \ No newline at end of file + path: dist/ + + publish_to_testpypi: + runs-on: ubuntu-latest + if: ${{ contains(github.ref, 'dev') }} + needs: [build] + environment: + name: testpypi + url: https://test.pypi.org/p/pyrasa + permissions: + id-token: write + steps: + - name: Download all the dists + uses: actions/download-artifact@v4 + with: + name: python-package-distributions + path: dist/ + - name: Publish distribution 📦 to TestPyPI + uses: pypa/gh-action-pypi-publish@release/v1 + with: + repository-url: https://test.pypi.org/legacy/ \ No newline at end of file