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 d102d5d
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions .github/workflows/cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,16 +103,17 @@ 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
- name: Publish package distributions to PyPI
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 }}
repository-url: https://test.pypi.org/legacy/

0 comments on commit d102d5d

Please sign in to comment.