Skip to content

Commit

Permalink
🔧 try to update to OIDC
Browse files Browse the repository at this point in the history
  • Loading branch information
Henry committed Apr 27, 2024
1 parent 0d3bfc5 commit 34b0863
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions .github/workflows/cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,16 +103,15 @@ jobs:
- build_source_dist
# - build_wheels
runs-on: ubuntu-latest

environment:
name: testpypi
url: https://test.pypi.org/project/list-publications/
permissions:
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
steps:
- uses: actions/download-artifact@v4
with:
name: artifact
path: ./dist

- uses: pypa/gh-action-pypi-publish@release/v1
with:
# remove repository key to set the default to pypi (not test.pypi.org)
repository-url: https://test.pypi.org/legacy/
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
- Publish package distributions to PyPI
- uses: pypa/gh-action-pypi-publish@release/v1

0 comments on commit 34b0863

Please sign in to comment.