Skip to content

Fix PyPI publish workflow never triggering - #12

Merged
chrishayuk merged 1 commit into
mainfrom
fix/pypi-publish-trigger
Jul 14, 2026
Merged

Fix PyPI publish workflow never triggering#12
chrishayuk merged 1 commit into
mainfrom
fix/pypi-publish-trigger

Conversation

@chrishayuk

Copy link
Copy Markdown
Collaborator

Summary

  • release.yml creates GitHub releases using the default GITHUB_TOKEN. Events produced by that token don't cascade to trigger other workflows (a GitHub Actions anti-recursion safeguard), so publish.yml's release: published trigger has never fired — confirmed 0 runs of "Publish to PyPI" in the repo's entire Actions history, despite 3 successful releases (v0.5.1, v0.6.1, v0.6.2).
  • Every PyPI release to date was evidently published manually, not via this pipeline.
  • Fix: trigger publish.yml directly off the v*.*.* tag push (the same trigger release.yml already uses reliably), and add a tag-vs-pyproject.toml version check as a safety guard.

Same fix already applied and verified working end-to-end on chuk-artifacts (IBM/chuk-artifacts#19).

Test plan

  • Confirm PyPI Trusted Publishing is configured for this project (pypi.org → chuk-sessions → Manage → Publishing → GitHub publisher: repo IBM/chuk-sessions, workflow publish.yml, environment pypi).
  • Push a new version tag and confirm the "Publish to PyPI" workflow runs and succeeds.

release.yml creates GitHub releases using the default GITHUB_TOKEN,
whose events don't cascade to trigger other workflows. As a result
publish.yml's `release: published` trigger has never fired in the
repo's history despite releases being created successfully - every
PyPI release so far (0.5.1, 0.6.1, 0.6.2) was published manually.

Trigger publish.yml directly off the version tag push (same trigger
release.yml uses) so it runs reliably, and add a tag/pyproject.toml
version check to guard against publishing a mismatched version.

Signed-off-by: chrishayuk <chrishayuk@googlemail.com>
@chrishayuk
chrishayuk merged commit 0524a00 into main Jul 14, 2026
10 checks passed
@chrishayuk
chrishayuk deleted the fix/pypi-publish-trigger branch July 14, 2026 15:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant