Skip to content

Commit

Permalink
Merge pull request #248 from cphyc/upgrade-pypi-credentials
Browse files Browse the repository at this point in the history
Do not use tokens for Pypi uploads
  • Loading branch information
cphyc authored Apr 3, 2024
2 parents e8d50ea + ad2d8ce commit f1cb2c7
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/wheels.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,11 @@ jobs:
runs-on: ubuntu-latest
# upload to PyPI on every tag starting with 'yt_astro_analysis-'
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/yt_astro_analysis-')
environment:
name: upload_pypi
url: https://pypi.org/p/yt-astro-analysis
permissions:
id-token: write
steps:
- uses: actions/download-artifact@v4
with:
Expand All @@ -76,6 +81,3 @@ jobs:
merge-multiple: true

- uses: pypa/[email protected]
with:
user: __token__
password: ${{ secrets.pypi_token }}

0 comments on commit f1cb2c7

Please sign in to comment.