Skip to content

Commit 0f4bd99

Browse files
authored
use trusted publishing (#437)
* use trusted publishing * add back the verbose setting
1 parent ae99250 commit 0f4bd99

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/pypi.yaml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,13 @@ jobs:
8383
needs: test-built-dist
8484
if: github.event_name == 'release'
8585
runs-on: ubuntu-latest
86+
87+
environment:
88+
name: pypi
89+
url: https://pypi.org/p/cf-xarray
90+
permissions:
91+
id-token: write
92+
8693
steps:
8794
- uses: actions/download-artifact@v3
8895
with:
@@ -91,5 +98,4 @@ jobs:
9198
- name: Publish package to PyPI
9299
uses: pypa/[email protected]
93100
with:
94-
password: ${{ secrets.PYPI_PASSWORD }}
95101
verbose: true

0 commit comments

Comments
 (0)