Skip to content

Commit

Permalink
CI: Move to trusted publishing for PyPI uploads
Browse files Browse the repository at this point in the history
  • Loading branch information
effigies committed Dec 6, 2023
1 parent d7a9a02 commit 107a24d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -195,13 +195,13 @@ jobs:
runs-on: ubuntu-latest
environment: "Package deployment"
needs: [test, test-package]
permissions:
# Required for trusted publishing
id-token: write
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
steps:
- uses: actions/download-artifact@v3
with:
name: dist
path: dist/
- uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}

0 comments on commit 107a24d

Please sign in to comment.