Skip to content

Commit

Permalink
CI: Use trusted publishing instead of token
Browse files Browse the repository at this point in the history
  • Loading branch information
Croydon committed May 10, 2024
1 parent f0878cb commit c156f77
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/remote.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@ jobs:
runs-on: ubuntu-22.04
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
needs: test
permissions:
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
Expand All @@ -81,6 +83,3 @@ jobs:
python setup.py sdist
- name: Publish package
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_TOKEN }}

0 comments on commit c156f77

Please sign in to comment.