Fix Upload Python Package workflow not triggering on programmatic releases#205
Merged
Fix Upload Python Package workflow not triggering on programmatic releases#205
Conversation
…lease creation Agent-Logs-Url: https://github.com/LFPy/LFPykit/sessions/d9b292e6-eb74-46de-87fb-6c74e97b3ddd Co-authored-by: espenhgn <2492641+espenhgn@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix python-publish.yml action not triggering for release 0.6.0
Fix Upload Python Package workflow not triggering on programmatic releases
Apr 10, 2026
espenhgn
approved these changes
Apr 10, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
GitHub Actions suppresses
release: createdevents when the release is created byGITHUB_TOKEN, sopython-publish.ymlnever fired aftercreate-release.ymlrangh release create. This caused the v0.6.0 release to not be published to PyPI automatically.Description
deployjob tocreate-release.ymlwith the same build & publish steps aspython-publish.ymlneeds.release.outputs.released == 'true'— only runs when a new release is actually created (skips pushes where the tag already exists)permissions: contents: readto thedeployjob (least-privilege)python-publish.ymlleft unchanged — continues to handle manually-created releases via the UIFlow for automated releases (via
create-release.yml):Flow for manual releases:
Related Issue
https://github.com/LFPy/LFPykit/issues —
python-publish.ymlhad zero runs for v0.6.0 release.Motivation and Context
GITHUB_TOKENis explicitly prevented from triggering downstream workflow events in GitHub Actions. The release created bycreate-release.ymlnever cascades topython-publish.yml, so PyPI publish must be co-located in the same workflow.How Has This Been Tested
Reviewed workflow logic and GitHub Actions event cascade behavior. The
releasedoutput correctly propagates thecheck_tagresult, ensuring thedeployjob only runs on a genuine new release.Types of changes
Checklist