diff --git a/.github/workflows/wheels.yaml b/.github/workflows/wheels.yaml index f68e7d8..0ad284b 100644 --- a/.github/workflows/wheels.yaml +++ b/.github/workflows/wheels.yaml @@ -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: @@ -76,6 +81,3 @@ jobs: merge-multiple: true - uses: pypa/gh-action-pypi-publish@v1.8.14 - with: - user: __token__ - password: ${{ secrets.pypi_token }}