Skip to content

Commit 4a37db4

Browse files
committed
trusted pypi publishers
1 parent 8eac2f3 commit 4a37db4

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

.github/workflows/pypi-release.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,16 @@ on:
1111
- "packages/python-sdk/**"
1212
workflow_dispatch:
1313

14+
permissions:
15+
id-token: write
16+
contents: read
17+
1418
concurrency: ${{ github.workflow }}-${{ github.ref }}
1519

1620
jobs:
1721
release:
1822
runs-on: ubuntu-latest
23+
environment: pypi
1924
defaults:
2025
run:
2126
working-directory: packages/python-sdk
@@ -39,8 +44,6 @@ jobs:
3944
run: ls -la dist
4045

4146
- name: Publish to PyPI
42-
uses: pypa/gh-action-pypi-publish@v1.4.2
47+
uses: pypa/gh-action-pypi-publish@release/v1
4348
with:
44-
user: __token__
45-
password: ${{ secrets.PYPI_API_TOKEN }}
46-
packages_dir: packages/python-sdk/dist
49+
packages-dir: packages/python-sdk/dist

0 commit comments

Comments
 (0)