Skip to content

ci(publish): guarded manual publish from main - #10

Merged
SaulBuilds merged 1 commit into
mainfrom
ci/publish-dispatch
Sep 26, 2026
Merged

SaulBuilds merged 1 commit into
mainfrom
ci/publish-dispatch

Conversation

@SaulBuilds

Copy link
Copy Markdown
Contributor

Release tags are protected from deletion. The v0.6.2 release tag points at a commit whose publish workflow predates #9, so it can't be re-cut.

A manual run of publish.yml now publishes only if:

  • it runs on main,
  • publish_version is set,
  • every built artifact is exactly that version.

Otherwise the run is a test+build dry run. Publishing still goes only through PyPI Trusted Publishing (OIDC).

Package code is unchanged from the v0.6.2 tag. Only .github/workflows/publish.yml differs.

🤖 Generated with Claude Code

https://claude.ai/code/session_012cD3fDq5vhh2YWZPU2SV6H

Release tags are protected from deletion, so a release cut on a tag whose
workflow is stale can't be re-cut. A manual run on main can now publish when
the typed version matches the built artifacts; any other ref, or a blank
version, stays a test+build dry run.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012cD3fDq5vhh2YWZPU2SV6H
@SaulBuilds
SaulBuilds merged commit 688173a into main Sep 26, 2026
10 checks passed
@SaulBuilds
SaulBuilds deleted the ci/publish-dispatch branch September 26, 2026 00:01
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