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 fc3110c commit b74cf1c
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 @@ -81,6 +81,11 @@ jobs:
build:
runs-on: arc-runner
needs: test

permissions:
id-token: write
contents: read

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

steps:
Expand All @@ -94,8 +99,6 @@ jobs:

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

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v5
Expand Down

0 comments on commit b74cf1c

Please sign in to comment.