From b90b227b2dd9d0182e717ea0fbfc68796a29b168 Mon Sep 17 00:00:00 2001 From: Guy Smoilovsky Date: Thu, 16 Jul 2026 11:28:38 +0300 Subject: [PATCH 1/2] Explicitly dispatch PyPI publish (GITHUB_TOKEN releases don't trigger release: published) --- .github/workflows/release.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 35cc473f..d433b6b0 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -28,6 +28,7 @@ on: permissions: contents: write + actions: write jobs: release: @@ -114,3 +115,13 @@ jobs: --title "$title" \ --generate-notes \ "${draft_flag[@]}" + + # GitHub Actions does not cascade the `release: published` event when the release is + # created using the default GITHUB_TOKEN, so python-publish.yml would never fire on its + # own. Dispatch it explicitly instead of relying on that event. + - name: Trigger PyPI publish + if: inputs.draft != true + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + TARGET_SHA: ${{ steps.commit.outputs.sha }} + run: gh workflow run python-publish.yml --ref "$TARGET_SHA" From c4607a4aa786a0fa3fd3fec9bac77372d01210dc Mon Sep 17 00:00:00 2001 From: Guy Smoilovsky Date: Thu, 16 Jul 2026 11:36:21 +0300 Subject: [PATCH 2/2] Dispatch publish by release tag, not commit SHA (workflow_dispatch ref requires a branch/tag) --- .github/workflows/release.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d433b6b0..e4410e94 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -123,5 +123,5 @@ jobs: if: inputs.draft != true env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - TARGET_SHA: ${{ steps.commit.outputs.sha }} - run: gh workflow run python-publish.yml --ref "$TARGET_SHA" + RELEASE_TAG: ${{ steps.version.outputs.new }} + run: gh workflow run python-publish.yml --ref "$RELEASE_TAG"