add regular pypi deploy to github actions

This commit is contained in:
Bastien Gérard
2020-12-16 21:21:22 +01:00
committed by Bastien Gerard
parent 8f3d21c312
commit fd35df07c4
2 changed files with 22 additions and 19 deletions
+4 -1
View File
@@ -92,8 +92,11 @@ jobs:
- run: |
pip install wheel
python setup.py sdist bdist_wheel
- uses: pypa/gh-action-pypi-publish@master
with:
password: ${{ secrets.test_pypi_password }}
repository_url: https://test.pypi.org/legacy/
- uses: pypa/gh-action-pypi-publish@master
if: github.event_name == 'create' && startsWith(github.ref, 'refs/tags/v')
with:
password: ${{ secrets.pypi_password }}
repository_url: https://test.pypi.org/legacy/