diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 80a560142..1b3b2dceb 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -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 + poetry publish --build