Skip to content

Commit

Permalink
✨ move to short-term tokens
Browse files Browse the repository at this point in the history
  • Loading branch information
enryH committed Sep 2, 2024
1 parent 4831611 commit 8ffc2a0
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/tox-gha.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ jobs:
publish:
name: Publish package
if: startsWith(github.ref, 'refs/tags')
permissions:
id-token: write
needs:
- build
runs-on: ubuntu-latest
Expand All @@ -43,8 +45,5 @@ jobs:
run: python -m pip install --upgrade twine build
- name: Build
run: python -m build

- uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1

0 comments on commit 8ffc2a0

Please sign in to comment.