Skip to content

Commit 1269964

Browse files
silv-ioclaude
andauthored
CI: Switch PyPI publishing to trusted publishing via OIDC (#21)
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent b80e41d commit 1269964

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

.github/workflows/release.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ env:
1818
jobs:
1919
test_python:
2020
runs-on: ubuntu-latest
21+
environment: pypi
22+
permissions:
23+
contents: write
24+
id-token: write
2125
env:
2226
RELEASE_VERSION: ${{ github.event_name == 'workflow_dispatch' && inputs.version || github.event.client_payload.version}}
2327

@@ -93,7 +97,7 @@ jobs:
9397

9498
- name: "Publish Release to PyPi"
9599
env:
96-
UV_PUBLISH_TOKEN: ${{ secrets.UV_PUBLISH_TOKEN }}
100+
UV_PUBLISH_TRUSTED_PUBLISHING: always
97101
run: make publish
98102

99103
- name: "Create GitHub Release"

0 commit comments

Comments
 (0)