github: also publish stables releases to test pypi

This commit is contained in:
Aleix Conchillo Flaqué
2024-04-06 17:58:13 -07:00
parent b678097f6d
commit 86c8ab02cc

View File

@@ -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/