Skip to content

Commit d8dbd52

Browse files
committed
ci: use uv publish instead of pypa action
Switch to using uv publish directly with UV_PUBLISH_TOKEN, which is simpler and doesn't require OIDC permissions.
1 parent c2dd397 commit d8dbd52

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

.github/workflows/python-publish.yml

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,9 @@ jobs:
2424
- name: Set up Python
2525
run: uv python install 3.12
2626

27-
- name: Build package
28-
run: uv build
29-
30-
- name: Publish to PyPI
31-
uses: pypa/gh-action-pypi-publish@release/v1
32-
with:
33-
password: ${{ secrets.PYPI_API_TOKEN }}
34-
skip-existing: true
27+
- name: Build and publish to PyPI
28+
env:
29+
UV_PUBLISH_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
30+
run: |
31+
uv build
32+
uv publish

0 commit comments

Comments
 (0)