Added trusted PyPI publishing

This commit is contained in:
Andrew Murray 2023-12-14 19:02:48 +11:00
parent cbab3a5c9b
commit 6693046143

View File

@ -194,3 +194,17 @@ jobs:
with:
name: dist
path: dist/*.tar.gz
pypi-publish:
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
needs: [build, windows, sdist]
runs-on: ubuntu-latest
name: Upload release to PyPI
environment:
name: pypi
url: https://pypi.org/p/Pillow
permissions:
id-token: write
steps:
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1