diff --git a/.github/workflows/create-release.yaml b/.github/workflows/create-release.yaml index 995ca42..8cda189 100644 --- a/.github/workflows/create-release.yaml +++ b/.github/workflows/create-release.yaml @@ -25,10 +25,8 @@ jobs: run: | tox -e clean tox -e build - - name: tox publish - env: - TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }} - TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} - run: | - twine check dist/* - tox -e publish -- --repository pypi + - name: Publish package + uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29 + with: + user: __token__ + password: ${{ secrets.PYPI_API_TOKEN }}