Skip to content

Commit

Permalink
Use Github OIDC to publish release to PyPI
Browse files Browse the repository at this point in the history
  • Loading branch information
acopar committed Dec 13, 2024
1 parent eeb0a15 commit 19bcf06
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,11 @@ jobs:
build:
runs-on: arc-runner
needs: test

permissions:
id-token: write
contents: read

if: startsWith(github.ref, 'refs/tags')

steps:
Expand All @@ -125,5 +130,3 @@ jobs:

- name: Publish distribution to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.pypi_password }}

0 comments on commit 19bcf06

Please sign in to comment.