Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added trusted PyPI publishing #7616

Merged
merged 10 commits into from Dec 26, 2023
16 changes: 10 additions & 6 deletions .github/workflows/wheels.yml
Expand Up @@ -195,12 +195,16 @@ jobs:
name: dist
path: dist/*.tar.gz

success:
permissions:
contents: none
pypi-publish:
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
radarhere marked this conversation as resolved.
Show resolved Hide resolved
needs: [build, windows, sdist]
runs-on: ubuntu-latest
name: Wheels Successful
name: Upload release to PyPI
hugovk marked this conversation as resolved.
Show resolved Hide resolved
environment:
name: pypi
radarhere marked this conversation as resolved.
Show resolved Hide resolved
url: https://pypi.org/p/Pillow
permissions:
id-token: write
steps:
- name: Success
run: echo Wheels Successful
- name: Publish package distributions to PyPI
radarhere marked this conversation as resolved.
Show resolved Hide resolved
uses: pypa/gh-action-pypi-publish@release/v1