Skip to content

Commit 06e8322

Browse files
committed
ci: use trusted publishing to pypi
1 parent 7314086 commit 06e8322

1 file changed

Lines changed: 7 additions & 5 deletions

File tree

.github/workflows/ci.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -264,6 +264,13 @@ jobs:
264264

265265
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
266266

267+
environment:
268+
name: pypi
269+
url: https://pypi.org/p/alsa-midi
270+
271+
permissions:
272+
id-token: write
273+
267274
needs:
268275
- build-pure
269276
- build-manylinux_2_12_x86_64
@@ -288,8 +295,3 @@ jobs:
288295
289296
- name: Publish package to PyPI
290297
uses: pypa/gh-action-pypi-publish@release/v1
291-
with:
292-
user: __token__
293-
password: ${{ secrets.PYPI_API_TOKEN }}
294-
# password: ${{ secrets.TEST_PYPI_API_TOKEN }}
295-
# repository_url: https://test.pypi.org/legacy/

0 commit comments

Comments
 (0)