We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 02663e3 commit 0d4b0a8Copy full SHA for 0d4b0a8
.github/workflows/wheels.yml
@@ -97,6 +97,13 @@ jobs:
97
upload_all:
98
needs: [build_wheels, make_sdist]
99
runs-on: ubuntu-latest
100
+ # Restrict to the environment set for the trusted publisher
101
+ environment:
102
+ name: publish
103
+ # Mandatory for publishing with a trusted publisher
104
+ # c.f. https://docs.pypi.org/trusted-publishers/using-a-publisher/
105
+ permissions:
106
+ id-token: write
107
if: github.event_name == 'release' && github.event.action == 'published'
108
109
steps:
@@ -108,6 +115,4 @@ jobs:
115
116
- uses: pypa/gh-action-pypi-publish@release/v1
110
117
with:
111
- user: __token__
112
- # Remember to generate this and set it in "GitHub Secrets"
113
- password: ${{ secrets.pypi_password }}
118
+ print-hash: true
0 commit comments