Skip to content

Commit 04e68e0

Browse files
committed
fix python sdk publishing
1 parent 9848bed commit 04e68e0

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

.github/workflows/python.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ on:
1313
concurrency: ${{ github.workflow }}-${{ github.ref }}
1414
jobs:
1515
build:
16+
permissions:
17+
id-token: write # for python PyPI OIDC login
18+
contents: read
1619
name: Python SDK
1720
runs-on: ubuntu-22.04-8core-32gb
1821
defaults:
@@ -48,10 +51,9 @@ jobs:
4851
python -m piptools compile --upgrade pyproject.toml;
4952
- name: Publish
5053
if: github.ref == 'refs/heads/main'
51-
run: poetry publish -u $PYPI_USERNAME -p $PYPI_PASSWORD --skip-existing
52-
env:
53-
PYPI_USERNAME: ${{ secrets.PYPI_USERNAME }}
54-
PYPI_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
54+
uses: pypa/gh-action-pypi-publish@release/v1
55+
with:
56+
skip-existing: true
5557

5658
e2e:
5759
name: Validate E2E tests

0 commit comments

Comments
 (0)