Skip to content

fix: run PyPI upload from top-level workflow not reusable one#6

Merged
tylerriccio33 merged 1 commit into
mainfrom
fix-reusable-publish
Jun 9, 2026
Merged

fix: run PyPI upload from top-level workflow not reusable one#6
tylerriccio33 merged 1 commit into
mainfrom
fix-reusable-publish

Conversation

@tylerriccio33

Copy link
Copy Markdown
Owner

PyPI Trusted Publishing fails with invalid-publisher when the publish step runs inside a reusable (workflow_call) workflow (pypa/gh-action-pypi-publish#166).

  • publish.yml becomes a build-only reusable workflow, uploading wheels-* artifacts.
  • release-please.yml calls it to build, then runs gh-action-pypi-publish itself in a top-level job.

The PyPI trusted publisher's workflow filename must be set to release-please.yml (the file that now runs the upload), not publish.yml.

@tylerriccio33 tylerriccio33 merged commit 71101d8 into main Jun 9, 2026
10 of 11 checks passed
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