From 6693046143071b86c586544aa43f61fa600dc2ba Mon Sep 17 00:00:00 2001 From: Andrew Murray Date: Thu, 14 Dec 2023 19:02:48 +1100 Subject: [PATCH] Added trusted PyPI publishing --- .github/workflows/wheels.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.github/workflows/wheels.yml b/.github/workflows/wheels.yml index 0ce689066..3162f135c 100644 --- a/.github/workflows/wheels.yml +++ b/.github/workflows/wheels.yml @@ -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