Fix GitHub release repository context - #13
Open
IsmailM wants to merge 1 commit into
Open
Conversation
There was a problem hiding this comment.
Pull request overview
Fixes the GitHub release step in the tag-based release workflow by explicitly setting the target repository for gh release create, allowing the github-release job to remain checkout-free while still creating/releases and attaching built distributions.
Changes:
- Update
gh release createinvocation to include--repo "${GITHUB_REPOSITORY}". - Convert the release command to a folded multi-line YAML
run: >-for readability while preserving the same shell command.
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
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.
Summary
The v0.0.2 workflow successfully published to PyPI, but its final GitHub release job failed because that job does not check out the repository. As a result,
gh release createcould not infer which repository to target.Pass
GITHUB_REPOSITORYexplicitly through the--repooption. This keeps the release job checkout-free while allowing future tag releases to create their GitHub release and attach the validated distributions.The v0.0.2 GitHub release was created manually from the exact workflow artifacts, and their SHA-256 hashes match the files published to PyPI.
Validation
gh release create --repo eye2gene/PyeScanagainst v0.0.2