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
This commit is contained in:
yusyus
2026-02-01 17:31:18 +03:00
parent ec9ee9dae8
commit 2d038e25c0

View File

@@ -79,3 +79,13 @@ jobs:
run: |
echo " Release ${{ github.ref_name }} already exists, skipping creation"
echo "View at: https://github.com/${{ github.repository }}/releases/tag/${{ github.ref_name }}"
- name: Build package
run: |
uv build
- name: Publish to PyPI
env:
UV_PUBLISH_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
run: |
uv publish --token $UV_PUBLISH_TOKEN