Skip to content

Workflow and pypi release#5

Merged
razeghi71 merged 3 commits intomainfrom
cursor/workflow-and-pypi-release-fbb0
Jan 7, 2026
Merged

Workflow and pypi release#5
razeghi71 merged 3 commits intomainfrom
cursor/workflow-and-pypi-release-fbb0

Conversation

@razeghi71
Copy link
Owner

@razeghi71 razeghi71 commented Jan 7, 2026

Fixes initial versioning and ensures PyPI releases are triggered reliably after a tag is pushed by a workflow.

The initial_version input for mathieudutour/github-tag-action is not supported, causing it to default to 0.0.1. Additionally, tags created by GITHUB_TOKEN within a workflow do not trigger other workflows, preventing the PyPI release from running. This PR introduces explicit initial tag creation and uses workflow_dispatch to reliably trigger the PyPI release.


Open in Cursor Open in Web


Note

Ensures reliable version tagging and PyPI releases, including first-time tags, and allows manual publish by tag.

  • semver-tag-and-release.yml: Adds actions: write, INITIAL_VERSION env, fetch-tags, and logic to detect no existing tags; creates an initial v<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: Adds workflow_dispatch with tag input and checks out the specified tag when manually dispatched.
  • Removes unsupported initial_version input from github-tag-action and 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.

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
Copy link

cursor bot commented Jan 7, 2026

Cursor Agent can help with this pull request. Just @cursor in comments and I'll start working on changes in this branch.
Learn more about Cursor Agents

@razeghi71 razeghi71 marked this pull request as ready for review January 7, 2026 13:43
cursoragent and others added 2 commits January 7, 2026 13:53
Co-authored-by: razeghi71 <razeghi71@gmail.com>
Co-authored-by: razeghi71 <razeghi71@gmail.com>
@razeghi71 razeghi71 merged commit 3b873e8 into main Jan 7, 2026
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.

2 participants