Skip to content

Commit

Permalink
Avoiding legacy API token for pypi
Browse files Browse the repository at this point in the history
  • Loading branch information
Robpol86 committed Jul 6, 2024
1 parent a178641 commit ae18828
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,17 +60,17 @@ jobs:
Publish:
needs: [Build, Docs]
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/sphinx-disqus
permissions:
id-token: write
steps:
- name: Download Build Artifact
uses: actions/download-artifact@v4
with:
name: dist
path: dist
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
- name: Download Documentation Artifact
uses: actions/download-artifact@v4
with:
Expand All @@ -83,3 +83,5 @@ jobs:
file_glob: true
repo_token: ${{ secrets.GITHUB_TOKEN }}
tag: ${{ github.ref }}
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1

0 comments on commit ae18828

Please sign in to comment.