Merged
Conversation
This commit introduces a manual trigger for the PyPI release workflow and adds logic to create an initial tag for the first release. Co-authored-by: razeghi71 <razeghi71@gmail.com>
|
Cursor Agent can help with this pull request. Just |
Co-authored-by: razeghi71 <razeghi71@gmail.com>
Co-authored-by: razeghi71 <razeghi71@gmail.com>
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.
Fixes initial versioning and ensures PyPI releases are triggered reliably after a tag is pushed by a workflow.
The
initial_versioninput formathieudutour/github-tag-actionis not supported, causing it to default to0.0.1. Additionally, tags created byGITHUB_TOKENwithin a workflow do not trigger other workflows, preventing the PyPI release from running. This PR introduces explicit initial tag creation and usesworkflow_dispatchto reliably trigger the PyPI release.Note
Ensures reliable version tagging and PyPI releases, including first-time tags, and allows manual publish by tag.
semver-tag-and-release.yml: Addsactions: write,INITIAL_VERSIONenv,fetch-tags, and logic to detect no existing tags; creates an initialv<INITIAL_VERSION>tag when needed, otherwise bumps per PR labels; uses the created/bumped tag for the GitHub release; dispatches the PyPI publish workflow with that tag.release-pypi.yml: Addsworkflow_dispatchwithtaginput and checks out the specified tag when manually dispatched.initial_versioninput fromgithub-tag-actionand conditions it to run only when tags already exist.Written by Cursor Bugbot for commit dd45624. This will update automatically on new commits. Configure here.