Skip to content

Commit

Permalink
Update publish.yaml
Browse files Browse the repository at this point in the history
Signed-off-by: Sorin Birchi <sb.birchi.sorin@gmail.com>
  • Loading branch information
Sorin Birchi committed Aug 25, 2024
1 parent 7a7a103 commit 80cce01
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,13 @@ jobs:
pypi-publish:
name: upload release to PyPI
runs-on: ubuntu-latest
environment: publish
# Specifying a GitHub environment is optional, but strongly encouraged
environment: release
permissions:
# IMPORTANT: this permission is mandatory for trusted publishing
id-token: write
steps:
# retrieve your distributions here

- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
username: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
uses: pypa/gh-action-pypi-publish@release/v1

0 comments on commit 80cce01

Please sign in to comment.