Skip to content

Commit

Permalink
Update wheel-release.yml with id-token permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
cboylston authored Jul 17, 2024
1 parent 8b3c924 commit e255cc8
Showing 1 changed file with 8 additions and 12 deletions.
20 changes: 8 additions & 12 deletions .github/workflows/wheel-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,6 @@ jobs:
mv wheels/**/*.whl dist
rm -rf wheels
ls dist
# see https://github.com/marketplace/actions/pypi-publish
- name: Publish to PyPI Test Server
uses: pypa/gh-action-pypi-publish@release/v1
with:
verbose: true
user: __token__
password: ${{ secrets.PYPI_TEST_API_TOKEN }}
repository_url: https://test.pypi.org/legacy/
# see https://github.com/marketplace/actions/create-release
- name: Create release
Expand All @@ -49,6 +40,11 @@ jobs:
token: ${{ secrets.GITHUB_TOKEN }}
tag: ${{ github.event.inputs.tag }}




# see https://github.com/marketplace/actions/pypi-publish
- name: Publish to PyPI Test Server
uses: pypa/gh-action-pypi-publish@release/v1
with:
verbose: true
user: __token__
password: ${{ secrets.PYPI_TEST_API_TOKEN }}
repository_url: https://test.pypi.org/legacy/

0 comments on commit e255cc8

Please sign in to comment.