Skip to content

Commit bf1cec8

Browse files
committed
Integrate tokenless publishing @ GHA CD workflow
1 parent 4f58a5e commit bf1cec8

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

.github/workflows/publish.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -311,6 +311,14 @@ jobs:
311311
- test-wheels-arm64-mac
312312
- test-wheels-windows
313313

314+
permissions:
315+
id-token: write # IMPORTANT: mandatory for trusted publishing
316+
317+
environment:
318+
name: pypi
319+
url: >-
320+
https://pypi.org/project/aiokafka/${{ github.ref_name }}
321+
314322
steps:
315323
- uses: actions/checkout@v2
316324
- name: Download distributions
@@ -320,6 +328,3 @@ jobs:
320328
path: dist/
321329
- name: Publish to PyPI
322330
uses: pypa/gh-action-pypi-publish@release/v1
323-
with:
324-
user: ${{ secrets.PYPI_USERNAME }}
325-
password: ${{ secrets.PYPI_PASSWORD }}

0 commit comments

Comments
 (0)