Skip to content

Commit

Permalink
Use trusted publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
virtuald committed May 28, 2024
1 parent 75a599a commit 0feb2a8
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/dist.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@ jobs:
runs-on: ubuntu-latest
needs: [check, check-doc, test]
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags')
permissions:
id-token: write

steps:
- uses: actions/checkout@v4
Expand All @@ -86,6 +88,3 @@ jobs:
run: python setup.py sdist bdist_wheel
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_PASSWORD }}

0 comments on commit 0feb2a8

Please sign in to comment.