diff --git a/.github/workflows/pypi-release.yaml b/.github/workflows/pypi-release.yaml index 264d9cc4..81620099 100644 --- a/.github/workflows/pypi-release.yaml +++ b/.github/workflows/pypi-release.yaml @@ -61,6 +61,11 @@ jobs: test-built-dist: needs: build-artifacts runs-on: ubuntu-latest + environment: + name: release + url: https://test.pypi.org/p/cmip6-downscaling + permissions: + id-token: write steps: - uses: actions/setup-python@v5.0.0 name: Install Python @@ -82,7 +87,6 @@ jobs: - name: Publish package to TestPyPI uses: pypa/gh-action-pypi-publish@v1.8.14 with: - password: ${{ secrets.TEST_PYPI_TOKEN }} repository-url: https://test.pypi.org/legacy/ # verbose: true @@ -90,7 +94,11 @@ jobs: needs: test-built-dist if: github.event_name == 'release' runs-on: ubuntu-latest - environment: release + environment: + name: release + url: https://pypi.org/p/cmip6-downscaling + permissions: + id-token: write steps: - uses: actions/download-artifact@v4 with: