Skip to content

Commit 0444873

Browse files
authored
Update OIDC workflow configuration (#330)
1 parent 036edb1 commit 0444873

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

.github/workflows/pypi-release.yaml

+10-2
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,11 @@ jobs:
6161
test-built-dist:
6262
needs: build-artifacts
6363
runs-on: ubuntu-latest
64+
environment:
65+
name: release
66+
url: https://test.pypi.org/p/cmip6-downscaling
67+
permissions:
68+
id-token: write
6469
steps:
6570
- uses: actions/[email protected]
6671
name: Install Python
@@ -82,15 +87,18 @@ jobs:
8287
- name: Publish package to TestPyPI
8388
uses: pypa/[email protected]
8489
with:
85-
password: ${{ secrets.TEST_PYPI_TOKEN }}
8690
repository-url: https://test.pypi.org/legacy/
8791
# verbose: true
8892

8993
upload-to-pypi:
9094
needs: test-built-dist
9195
if: github.event_name == 'release'
9296
runs-on: ubuntu-latest
93-
environment: release
97+
environment:
98+
name: release
99+
url: https://pypi.org/p/cmip6-downscaling
100+
permissions:
101+
id-token: write
94102
steps:
95103
- uses: actions/download-artifact@v4
96104
with:

0 commit comments

Comments
 (0)