Skip to content

Fix PyPI publish workflow never triggering - #19

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

Fix PyPI publish workflow never triggering#19
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 5+ successful releases.
  • Every PyPI release to date (up through 0.11.3) 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.

Test plan

  • Confirm PyPI Trusted Publishing is configured for this project (pypi.org → chuk-artifacts → Manage → Publishing → GitHub publisher: repo IBM/chuk-artifacts, workflow publish.yml, environment pypi) — this is a one-time manual step on pypi.org that I cannot verify or configure from here.
  • Push a new version tag (e.g. after bumping pyproject.toml) and confirm the "Publish to PyPI" workflow now runs and succeeds.

@chrishayuk
chrishayuk force-pushed the fix/pypi-publish-trigger branch from d92537a to 1e2a827 Compare July 14, 2026 14:07
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 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 d4468d8 into main Jul 14, 2026
10 checks passed
@chrishayuk
chrishayuk deleted the fix/pypi-publish-trigger branch July 14, 2026 14:15
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