Skip to content

Skip PyPI publish for package releases#156

Merged
rolandpg merged 1 commit into
masterfrom
fix/publish-workflow-release-tags
May 26, 2026
Merged

Skip PyPI publish for package releases#156
rolandpg merged 1 commit into
masterfrom
fix/publish-workflow-release-tags

Conversation

@rolandpg

Copy link
Copy Markdown
Collaborator

Summary

  • restrict the PyPI publish job to release tags that start with v
  • prevent package-only releases such as packages-v0.1.0 from attempting a duplicate Python package upload

Validation

  • parsed all workflow YAML files
  • ran git diff --check

Copilot AI review requested due to automatic review settings May 26, 2026 12:56

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 prevents unintended PyPI uploads by restricting the publish workflow to only run for GitHub Releases whose tag name starts with v, avoiding conflicts with “package-only” release tags like packages-v0.1.0.

Changes:

  • Add a job-level if: guard to only run the PyPI publish job when github.event.release.tag_name starts with v.
  • Document the rationale inline to clarify why package-only releases should skip PyPI publishing.

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

@rolandpg rolandpg merged commit 467eeea into master May 26, 2026
14 checks passed
@rolandpg rolandpg deleted the fix/publish-workflow-release-tags branch May 26, 2026 12:59
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