Skip to content

Commit

Permalink
Merge pull request #1030 from webknjaz/maintenance/gha-pypi-tokenless…
Browse files Browse the repository at this point in the history
…-publishing
  • Loading branch information
webknjaz authored Jul 13, 2024
2 parents 4f58a5e + bf1cec8 commit 2f976d0
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,14 @@ jobs:
- test-wheels-arm64-mac
- test-wheels-windows

permissions:
id-token: write # IMPORTANT: mandatory for trusted publishing

environment:
name: pypi
url: >-
https://pypi.org/project/aiokafka/${{ github.ref_name }}
steps:
- uses: actions/checkout@v2
- name: Download distributions
Expand All @@ -320,6 +328,3 @@ jobs:
path: dist/
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: ${{ secrets.PYPI_USERNAME }}
password: ${{ secrets.PYPI_PASSWORD }}

0 comments on commit 2f976d0

Please sign in to comment.