Skip to content

Commit 2d038e2

Browse files
ci: Add PyPI publishing to release workflow
- Build package with uv - Publish to PyPI using UV_PUBLISH_TOKEN secret - Automates PyPI release alongside GitHub release
1 parent ec9ee9d commit 2d038e2

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/workflows/release.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,3 +79,13 @@ jobs:
7979
run: |
8080
echo "ℹ️ Release ${{ github.ref_name }} already exists, skipping creation"
8181
echo "View at: https://github.com/${{ github.repository }}/releases/tag/${{ github.ref_name }}"
82+
83+
- name: Build package
84+
run: |
85+
uv build
86+
87+
- name: Publish to PyPI
88+
env:
89+
UV_PUBLISH_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
90+
run: |
91+
uv publish --token $UV_PUBLISH_TOKEN

0 commit comments

Comments
 (0)