diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1d9dc1b..c075397 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -83,10 +83,10 @@ jobs: run: | python -m pip install --upgrade pip pip install setuptools wheel twine - - name: Build and publish to pypi - env: - TWINE_USERNAME: ${{secrets.PYPI_USERNAME}} - TWINE_PASSWORD: ${{secrets.PYPI_PASSWORD}} + - name: Build the distribution run: | python setup.py sdist bdist_wheel - twine upload dist/* + - name: Upload to pypi + uses: pypa/gh-action-pypi-publish@release/v1 + with: + password: ${{ secrets.PYPI_API_TOKEN }}