ci: use pypi trusted publishing (#258)
use pypi trusted publishing Signed-off-by: gruebel <anton.gruebel@gmail.com>
This commit is contained in:
parent
4883ab47d8
commit
1722848651
|
|
@ -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 }}
|
||||
|
|
|
|||
Loading…
Reference in New Issue