diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml index 3b2d40e2..b5df1dcf 100644 --- a/.github/workflows/python-publish.yml +++ b/.github/workflows/python-publish.yml @@ -8,10 +8,9 @@ on: types: [created] jobs: - pypi-publish: + deploy: + name: upload release to PyPI runs-on: ubuntu-latest - name: release to PyPI - environment: release permissions: id-token: write steps: @@ -27,4 +26,5 @@ jobs: - name: Build and publish run: | python setup.py sdist bdist_wheel - twine upload dist/* + - name: Publish package distributions to PyPI + uses: pypa/gh-action-pypi-publish@release/v1