ci: add tagged release workflow#41
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: b1ba870167
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| exit 1 | ||
| fi | ||
|
|
||
| gh release create "${TAG_NAME}" "${archive}" "${checksum}" \ |
There was a problem hiding this comment.
Verify the pushed tag before creating releases
If the matching tag is deleted or otherwise missing by the time this step runs, gh release create will not fail closed: the GitHub CLI manual says a missing tag is automatically created from the latest default-branch state unless --verify-tag is used. In that race, this tag-triggered workflow can publish artifacts built from one commit while recreating the release tag on another commit, so add --verify-tag here to abort instead.
Useful? React with 👍 / 👎.
Closes #34.
Summary
v*.*.*tags..tar.gz.Acceptance Criteria
vX.Y.Zstarts the release workflow.Verification
ruby -e 'require "yaml"; YAML.load_file(".github/workflows/release.yml")'passed locally.cargo testpassed locally.cargo build --releasepassed locally.git diff --checkpassed locally.Review
gh release upload --clobberon existing releases.