Skip to content

feat: Add ref input to publish workflow for tag-specific builds#22

Merged
shaia merged 1 commit intomasterfrom
fix/publish-ref-input
Jan 4, 2026
Merged

feat: Add ref input to publish workflow for tag-specific builds#22
shaia merged 1 commit intomasterfrom
fix/publish-ref-input

Conversation

@shaia
Copy link
Copy Markdown
Owner

@shaia shaia commented Jan 4, 2026

When using workflow_dispatch, you can now specify a git ref (e.g., v0.1.6) to build from. This ensures setuptools-scm generates the correct version instead of a dev version with local identifier that PyPI rejects.

When using workflow_dispatch, you can now specify a git ref (e.g., v0.1.6)
to build from. This ensures setuptools-scm generates the correct version
instead of a dev version with local identifier that PyPI rejects.
@shaia shaia requested a review from Copilot January 4, 2026 19:49
@shaia shaia self-assigned this Jan 4, 2026
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds a ref input parameter to the publish and build-wheels workflows, enabling tag-specific builds when manually triggered. This ensures that setuptools-scm generates the correct version number for the specified git ref (e.g., a tag like v0.1.6) rather than a development version with local identifiers that PyPI rejects.

Key Changes:

  • Added optional ref input to workflow_dispatch and workflow_call triggers
  • Modified checkout actions to use the specified ref with fallback to github.ref

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
.github/workflows/publish.yml Added ref input parameter to workflow_dispatch; passed ref to build-wheels workflow via workflow_call; updated build_sdist checkout to use specified ref
.github/workflows/build-wheels.yml Added ref input parameters for both workflow_dispatch and workflow_call triggers; updated build_wheel checkout to use specified ref

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@shaia shaia merged commit 61a4b02 into master Jan 4, 2026
21 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.

2 participants