From 2d038e25c0acd596849b20da88983caa463a71e2 Mon Sep 17 00:00:00 2001 From: yusyus Date: Sun, 1 Feb 2026 17:31:18 +0300 Subject: [PATCH] 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 --- .github/workflows/release.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 7b6f27d..2091b2a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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