Skip to content

Commit 08265ac

Browse files
committed
Set up trusted publishing
1 parent 7af2f7d commit 08265ac

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

.github/workflows/release.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,8 @@ jobs:
127127
upload_pypi:
128128
needs: [cibuildwheel_py38plus, build_pure_wheels, build_sdist, build_macos_wheels]
129129
runs-on: ubuntu-24.04
130+
permissions:
131+
id-token: write
130132
steps:
131133
- name: Download distributions for publishing.
132134
uses: actions/download-artifact@v4
@@ -139,12 +141,11 @@ jobs:
139141
with:
140142
user: __token__
141143
password: ${{ secrets.TEST_TWINE_PASSWORD }}
142-
repository_url: https://test.pypi.org/legacy/
144+
repository-url: https://test.pypi.org/legacy/
143145
skip_existing: true
144146

145147
- name: Publish distributions to PyPI
146148
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/v')
147149
uses: pypa/gh-action-pypi-publish@release/v1
148150
with:
149151
user: __token__
150-
password: ${{ secrets.TWINE_PASSWORD }}

0 commit comments

Comments
 (0)