Skip to content

Commit 41ddfc7

Browse files
committed
Switch to trusted publishing
1 parent 1c19fa0 commit 41ddfc7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -167,16 +167,16 @@ jobs:
167167
upload_pypi:
168168
needs: [build_wheels, build_sdist]
169169
runs-on: ubuntu-latest
170+
permissions:
171+
id-token: write # needed for trusted publishing
170172
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
171173
steps:
172174
- uses: actions/download-artifact@v4
173175
with:
174176
pattern: artifact-*
175177
merge-multiple: true
176178
path: dist
177-
- uses: pypa/gh-action-pypi-publish@v1.5.0
179+
- uses: pypa/gh-action-pypi-publish@release/v1
178180
with:
179-
password: ${{ secrets.PYPI_API_TOKEN }}
180181
# testing:
181182
#repository_url: https://test.pypi.org/legacy/
182-
#password: ${{ secrets.TEST_PYPI_API_TOKEN }}

0 commit comments

Comments
 (0)