Skip to content

Commit 8def876

Browse files
authored
Merge pull request #654 from ajaust/impr/pypi-trusted-publisher
Use trusted publisher for PyPI publication
2 parents 379c7fb + 7f5b253 commit 8def876

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

.github/workflows/wheels.yaml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,13 @@ jobs:
6868
name: Publish wheels to PyPI
6969
runs-on: ubuntu-latest
7070
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
71+
72+
environment:
73+
name: pypi
74+
75+
permissions:
76+
id-token: write
77+
7178
steps:
7279
- uses: actions/checkout@v4
7380

@@ -78,9 +85,6 @@ jobs:
7885
path: ./wheelhouse/
7986

8087
- name: Publish wheels to PyPI
81-
8288
uses: pypa/gh-action-pypi-publish@release/v1
8389
with:
84-
user: __token__
85-
password: ${{ secrets.PYPI_API_TOKEN }}
8690
packages-dir: ./wheelhouse/

0 commit comments

Comments
 (0)