Skip to content

Commit

Permalink
Move away from using tokens
Browse files Browse the repository at this point in the history
  • Loading branch information
cphyc committed Mar 18, 2024
1 parent 9510175 commit 5b8359b
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 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: pypi
url: https://pypi.org/p/yt-astro-analysis
permissions:
id-token: write
steps:
- uses: actions/download-artifact@v4
with:
Expand All @@ -75,7 +80,4 @@ jobs:
pattern: wheels-*
merge-multiple: true

- uses: pypa/gh-action-pypi-publish@v1.8.12
with:
user: __token__
password: ${{ secrets.pypi_token }}
- uses: pypa/gh-action-pypi-publish@v1.8.14

0 comments on commit 5b8359b

Please sign in to comment.