Update Github build workflow

This commit is contained in:
nicolargo 2023-12-09 11:24:27 +01:00
parent e7b0cf09dd
commit 5e777f0f42

View File

@ -45,16 +45,16 @@ jobs:
--outdir dist/ --outdir dist/
- name: Publish distribution package to Test PyPI - name: Publish distribution package to Test PyPI
uses: pypa/gh-action-pypi-publish@master uses: pypa/gh-action-pypi-publish@release/v1
with: with:
user: __token__ user: __token__
password: ${{ secrets.TEST_PYPI_API_TOKEN }} password: ${{ secrets.TEST_PYPI_API_TOKEN }}
repository_url: https://test.pypi.org/legacy/ repository-url: https://test.pypi.org/legacy/
skip_existing: true skip-existing: true
- name: Publish distribution package to PyPI - name: Publish distribution package to PyPI
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags') if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@master uses: pypa/gh-action-pypi-publish@release/v1
with: with:
user: __token__ user: __token__
password: ${{ secrets.PYPI_API_TOKEN }} password: ${{ secrets.PYPI_API_TOKEN }}