diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml index be7f3db37..66c1fffd1 100644 --- a/.github/workflows/python-publish.yml +++ b/.github/workflows/python-publish.yml @@ -41,11 +41,13 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip - pip install setuptools wheel twine - - name: Build and publish - env: - TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }} - TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} - run: | - python setup.py sdist bdist_wheel - twine upload --verbose dist/* + pip install build setuptools wheel twine + - name: Build package + run: python setup.py sdist bdist_wheel + - name: Publish package + uses: pypa/gh-action-pypi-publish@v1 + with: + verbose: true + repository-url: https://upload.pypi.org/legacy/ + user: __token__ + password: ${{ secrets.PYPI_API_TOKEN }}