Update publish.yaml [skip ci]

This commit is contained in:
Michael Panchenko 2024-03-20 00:39:54 +01:00 committed by GitHub
parent e3661c11e3
commit 55e9bee373
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -22,9 +22,7 @@ jobs:
poetry config virtualenvs.in-project true --local
- name: Build and publish
env:
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
POETRY_PYPI_TOKEN_PYPI: ${{ secrets.PYPI_TOKEN }}
run: |
if [ -z "${PYPI_TOKEN}" ]; then echo "Set the PYPI_TOKEN variable in your repository secrets"; exit 1; fi
poetry config pypi-token.pypi $PYPI_TOKEN
poetry config repositories.pypi https://pypi.org/legacy/
poetry publish --build --repository pypi
if [ -z "${POETRY_PYPI_TOKEN_PYPI}" ]; then echo "Set the PYPI_TOKEN variable in your repository secrets"; exit 1; fi
run: poetry publish