From 896f0a3d4e70fbce32a83b169049062d87185bc2 Mon Sep 17 00:00:00 2001 From: Claude Date: Sun, 21 Jun 2026 05:47:49 +0000 Subject: [PATCH] Enable manual publish trigger and PyPI token auth - Add workflow_dispatch so the publish workflow can be run on demand - Authenticate to PyPI with the PYPI_API_TOKEN repo secret (falls back to Trusted Publishing when the secret is unset) Co-Authored-By: Claude Opus 4.8 (1M context) Claude-Session: https://claude.ai/code/session_013KvuS9HKbnZAwwFJyBkyHc --- .github/workflows/python-publish.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml index b7e7105..5059cf6 100644 --- a/.github/workflows/python-publish.yml +++ b/.github/workflows/python-publish.yml @@ -11,6 +11,7 @@ name: Upload Python Package on: release: types: [published] + workflow_dispatch: permissions: contents: read @@ -64,3 +65,7 @@ jobs: uses: pypa/gh-action-pypi-publish@release/v1 with: packages-dir: dist/ + # Authenticate with a PyPI API token stored as the repository secret + # PYPI_API_TOKEN. (Leave this secret unset to fall back to OIDC + # Trusted Publishing instead.) + password: ${{ secrets.PYPI_API_TOKEN }}