diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 846e945..0885292 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -28,6 +28,7 @@ jobs: - name: Publish to PyPI env: - PYPI_USERNAME: ${{ secrets.PYPI_USERNAME }} - PYPI_PASSWORD: ${{ secrets.PYPI_PASSWORD }} - run: poetry publish --username $PYPI_USERNAME --password $PYPI_PASSWORD --build + PYPI_API_TOKEN: ${{ secrets.PYPI_API_TOKEN }} + run: | + poetry config pypi-token.pypi $PYPI_API_TOKEN + poetry publish --build