Skip to content

fix(ci): trigger PyPI publish after Release workflow completes#15

Merged
35C4n0r merged 1 commit into
mainfrom
35C4n0r/fix-pypi-workflow-ordering
May 24, 2026
Merged

fix(ci): trigger PyPI publish after Release workflow completes#15
35C4n0r merged 1 commit into
mainfrom
35C4n0r/fix-pypi-workflow-ordering

Conversation

@35C4n0r

@35C4n0r 35C4n0r commented May 24, 2026

Copy link
Copy Markdown
Owner

Summary

  • release: published fires the moment a GitHub Release exists, even before build artifacts are attached; a manually created release (or any race with the build job) causes pypi.yml to run with an empty dist/
  • Switch trigger to workflow_run on the Release workflow so pypi.yml only starts after the build has finished and uploaded the wheel/sdist
  • Gate on conclusion == 'success' so a failed build never attempts a publish
  • Resolve the tag from workflow_run.head_branch for the automatic path, inputs.tag for workflow_dispatch

…event

- release: published fires as soon as a GitHub Release exists, even with
  no assets attached; manually creating a release (or a race with the
  build job) caused pypi.yml to run before artifacts were uploaded
- switch trigger to workflow_run on Release completion so pypi.yml only
  runs after the build job has uploaded the wheel and sdist
- gate on conclusion == success so a failed release build does not
  attempt a publish
- resolve the tag from workflow_run.head_branch for the automatic path
  and from inputs.tag for the manual workflow_dispatch path
@35C4n0r 35C4n0r merged commit 7255164 into main May 24, 2026
4 checks passed
@35C4n0r 35C4n0r deleted the 35C4n0r/fix-pypi-workflow-ordering branch May 24, 2026 05:30
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