Skip to content

Commit

Permalink
ci: pypi trusted publisher
Browse files Browse the repository at this point in the history
  • Loading branch information
kiyoon committed Dec 12, 2024
1 parent 677b769 commit 5709589
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/build_and_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,8 @@ jobs:
if: ${{ github.event.inputs.dry-run == 'false' }}
runs-on: ubuntu-24.04
needs: [commit-changelog-and-release-github]
permissions:
id-token: write
steps:
- uses: actions/download-artifact@v4
with:
Expand All @@ -145,5 +147,4 @@ jobs:
- name: Build and upload to PyPI
run: |
pip install uv --break-system-packages
uv tool install twine
twine upload dist/* -u __token__ -p ${{ secrets.PYPI_API_TOKEN }} --non-interactive
uv publish

0 comments on commit 5709589

Please sign in to comment.