Skip to content

Commit d0a0cb2

Browse files
committed
Switch to trusted publishing.
1 parent fd224ef commit d0a0cb2

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/wheels.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,11 @@ jobs:
7474
name: Create a new release
7575
needs: [build_sdist, build_wheels]
7676
runs-on: ubuntu-latest
77+
environment:
78+
name: pypi
79+
url: https://pypi.org/project/pydemumble/
80+
permissions:
81+
id-token: write
7782
# Upload to PyPI on every tag starting with 'v'
7883
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/v')
7984

@@ -86,5 +91,3 @@ jobs:
8691

8792
- name: Release to PyPI
8893
uses: pypa/gh-action-pypi-publish@v1.9.0
89-
with:
90-
password: ${{ secrets.PYPI_API_TOKEN }}

0 commit comments

Comments
 (0)