Skip to content

Commit

Permalink
Update release.yml to use Trusted Publishing (#276)
Browse files Browse the repository at this point in the history
  • Loading branch information
di authored Apr 26, 2023
1 parent 0824eca commit 38c3cc4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ on:
jobs:
build-and-publish:
runs-on: ubuntu-latest
permissions:
# IMPORTANT: this permission is mandatory for trusted publishing
id-token: write
steps:
- name: Checkout
uses: actions/checkout@v3
Expand All @@ -21,5 +24,3 @@ jobs:
run: python -m build .
- name: Publish
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.pypi_password }}

0 comments on commit 38c3cc4

Please sign in to comment.