ci: use pypi trusted publishing (#258)

use pypi trusted publishing

Signed-off-by: gruebel <anton.gruebel@gmail.com>
This commit is contained in:
Anton Grübel 2024-01-11 22:12:47 +01:00 committed by GitHub
parent 4883ab47d8
commit 1722848651
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 2 deletions

View File

@ -33,6 +33,10 @@ jobs:
release:
runs-on: ubuntu-latest
environment: release
permissions:
# IMPORTANT: this permission is mandatory for trusted publishing to pypi
id-token: write
needs: release-please
if: ${{ needs.release-please.outputs.release_created }}
container:
@ -76,5 +80,3 @@ jobs:
- name: Publish a Python distribution to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_API_TOKEN }}