From 86c8ab02cc26c4508df827d14d72c879260c3a88 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aleix=20Conchillo=20Flaqu=C3=A9?= Date: Sat, 6 Apr 2024 17:58:13 -0700 Subject: [PATCH] github: also publish stables releases to test pypi --- .github/workflows/publish.yaml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index f49fea617..008a2c7cb 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -60,3 +60,25 @@ jobs: with: verbose: true print-hash: true + + publish-to-test-pypi: + name: "Test publish to PyPI" + runs-on: ubuntu-latest + needs: [ build ] + environment: + name: testpypi + url: https://pypi.org/p/dailyai + permissions: + id-token: write + steps: + - name: Download wheels + uses: actions/download-artifact@v4 + with: + name: wheels + path: ./dist + - name: Publish to PyPI + uses: pypa/gh-action-pypi-publish@release/v1 + with: + verbose: true + print-hash: true + repository-url: https://test.pypi.org/legacy/