Skip to content

ci: only publish from a tag ref in the release workflow - #41

Merged
Nathan-D-R merged 1 commit into
mainfrom
ci/tag-guard
Nov 28, 2026
Merged

Nathan-D-R merged 1 commit into
mainfrom
ci/tag-guard

Conversation

@Nathan-D-R

Copy link
Copy Markdown
Contributor

The release workflow can be started with workflow_dispatch. A manual run from a branch would run cargo publish from a non-tag ref.

This adds if: github.ref_type == 'tag' to the publish job and the github-release job (added in the previous release-workflow PR). workflow_dispatch stays, so a manual run on a tag still works; on a branch both jobs are skipped.

Tag-only CI path: no code changes.

workflow_dispatch can start the release workflow from a branch, which would run cargo publish from a non-tag ref. Guard the publish and github-release jobs on github.ref_type == 'tag'.
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Nov 28, 2026 •

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Updated (UTC)
✅ Deployment successful!
View logs
opensqlanywhere-docs 080a319 Nov 28 2026, 11:51 AM

@Nathan-D-R
Nathan-D-R merged commit 88ae8f0 into main Nov 28, 2026
7 checks passed
@Nathan-D-R
Nathan-D-R deleted the ci/tag-guard branch November 28, 2026 11:52
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.

1 participant