build(release): add cargo-release tooling + gated publish workflow#45
Draft
JustinKovacich wants to merge 2 commits into
Draft
build(release): add cargo-release tooling + gated publish workflow#45JustinKovacich wants to merge 2 commits into
JustinKovacich wants to merge 2 commits into
Conversation
There was a problem hiding this comment.
Pull request overview
Adds release tooling for the standalone uds_protocol crate by introducing cargo-release configuration and a GitHub Actions workflow intended to gate publishing on SemVer tags and an explicit enable flag.
Changes:
- Add
release.tomlto configurecargo-release(tag naming, pre-release hook, publish disabled by default). - Add
.github/workflows/release.ymlwith SemVer checks and a gated crates.io publish job onv*tags. - Update
Cargo.tomlauthors list to normalize email domains.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
release.toml |
Introduces cargo-release configuration (no default publishing, tag/commit message conventions, pre-release tests). |
Cargo.toml |
Normalizes author email addresses in package metadata. |
.github/workflows/release.yml |
Adds a tag-triggered release workflow with SemVer checks and a gated publish step. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Comment on lines
+3
to
+7
| on: | ||
| push: | ||
| tags: ["v*"] | ||
| pull_request: | ||
| types: [opened, synchronize, reopened] |
Comment on lines
+9
to
+10
| permissions: | ||
| contents: write |
| publish: | ||
| name: Publish to crates.io | ||
| needs: semver-checks | ||
| if: github.event_name == 'push' && vars.UDS_PROTOCOL_PUBLISH_ENABLED == 'true' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Phase A of DFT→Kellnr: add cargo-release config + a SemVer-gated publish workflow to uds_protocol (single-crate; tag
v{version}, crates.io,publish=false). Also normalizes stale author emails to @microvision.com. No metadata churn —repositoryuntouched.Publish stays deliberate: the publish job only runs when
vars.UDS_PROTOCOL_PUBLISH_ENABLEDis set and the crates.io token is provisioned in CI. Nothing publishes on merge.Part of the DFT→Kellnr Phase A program (per-repo release model).