Skip to content

Commit

Permalink
Set up trusted publishing to pypi
Browse files Browse the repository at this point in the history
  • Loading branch information
eivindjahren committed Apr 12, 2024
1 parent d19e2b3 commit abaa395
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/upload_to_pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ jobs:
upload_pypi:
needs: [build_wheels, build_sdist]
runs-on: ubuntu-latest
permissions:
id-token: write
environment: release
if: github.event_name == 'release' && github.event.action == 'published'
steps:
- uses: actions/download-artifact@v3
Expand All @@ -51,5 +54,4 @@ jobs:
- uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.pypi_password }}
# To test: repository_url: https://test.pypi.org/legacy/

0 comments on commit abaa395

Please sign in to comment.