-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Added trusted PyPI publishing #7616
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
Merged
Merged
Changes from 8 commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
cbab3a5
Removed "Success" job, as this is not used in mergify
radarhere 6693046
Added trusted PyPI publishing
radarhere c81beb5
Updated step name
radarhere 808f312
Updated environment name
radarhere fc1cf9f
Published to Test PyPI
radarhere 97c2b66
Updated actions/upload-artifact to v4
radarhere 2b806c5
Removed trailing dash
radarhere 4de1765
Merge branch 'main' into pypi
radarhere a66fbb9
Updated Windows artifact name
radarhere 043e13d
Revert "Published to Test PyPI"
radarhere File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change | ||||||
|---|---|---|---|---|---|---|---|---|
|
|
@@ -75,9 +75,9 @@ jobs: | |||||||
| CIBW_TEST_SKIP: "*-macosx_arm64" | ||||||||
| MACOSX_DEPLOYMENT_TARGET: ${{ matrix.macosx_deployment_target }} | ||||||||
|
|
||||||||
| - uses: actions/upload-artifact@v3 | ||||||||
| - uses: actions/upload-artifact@v4 | ||||||||
| with: | ||||||||
| name: dist | ||||||||
| name: dist-${{ matrix.os }}-${{ matrix.archs }}${{ matrix.manylinux && format('-{0}', matrix.manylinux) }} | ||||||||
| path: ./wheelhouse/*.whl | ||||||||
|
|
||||||||
| windows: | ||||||||
|
|
@@ -154,9 +154,9 @@ jobs: | |||||||
| shell: cmd | ||||||||
|
|
||||||||
| - name: Upload wheels | ||||||||
| uses: actions/upload-artifact@v3 | ||||||||
| uses: actions/upload-artifact@v4 | ||||||||
| with: | ||||||||
| name: dist | ||||||||
| name: dist-${{ matrix.arch }} | ||||||||
| path: ./wheelhouse/*.whl | ||||||||
|
|
||||||||
| - name: Upload fribidi.dll | ||||||||
|
|
@@ -179,17 +179,28 @@ jobs: | |||||||
|
|
||||||||
| - run: make sdist | ||||||||
|
|
||||||||
| - uses: actions/upload-artifact@v3 | ||||||||
| - uses: actions/upload-artifact@v4 | ||||||||
| with: | ||||||||
| name: dist | ||||||||
| name: dist-sdist | ||||||||
| 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: release-pypi | ||||||||
| url: https://pypi.org/p/Pillow | ||||||||
|
Comment on lines
+192
to
+194
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Maybe it's failing because we don't have an env set-up yet? Shall we try without, and we can always add back later?
Suggested change
|
||||||||
| permissions: | ||||||||
| id-token: write | ||||||||
| steps: | ||||||||
| - name: Success | ||||||||
| run: echo Wheels Successful | ||||||||
| - uses: actions/download-artifact@v4 | ||||||||
| with: | ||||||||
| pattern: dist-* | ||||||||
| path: dist | ||||||||
| merge-multiple: true | ||||||||
| - name: Publish to PyPI | ||||||||
| uses: pypa/gh-action-pypi-publish@release/v1 | ||||||||
radarhere marked this conversation as resolved.
Show resolved
Hide resolved
|
||||||||
| with: | ||||||||
| repository-url: https://test.pypi.org/legacy/ | ||||||||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.