Skip to content

ci: verify release tag against crate version instead of overwriting#38

Open
scarmuega wants to merge 1 commit into
mainfrom
ci/release-pipeline
Open

ci: verify release tag against crate version instead of overwriting#38
scarmuega wants to merge 1 commit into
mainfrom
ci/release-pipeline

Conversation

@scarmuega
Copy link
Copy Markdown
Member

What

rust-sdk’s release.yml was merged in #37 before the umbrella SDK release pipeline contract settled on manifest-as-source-of-truth versioning, so main still carries the old tag-derived overwrite approach. This brings rust-sdk in line with the other SDKs.

  • Adds a verify job that checks the pushed v* tag equals the Cargo.toml crate version and fails fast on mismatch, before build/test/publish.
  • Drops the step that rewrote Cargo.toml from the tag; cargo publish no longer needs --allow-dirty.
  • Points the umbrella-contract comment at the renamed reference/sdk-pipeline.md.

Pipeline: verifybuildtestpublish.

Verification

Workflow YAML syntactically validated only. Not executed and the crate not built this session — the pipeline can only be exercised by a real tag push.

Operational prerequisite

The CARGO_REGISTRY_TOKEN repository/org secret (a crates.io API token) must exist before the first release.

rust-sdk release.yml merged (#37) before the umbrella contract settled on
manifest-as-source-of-truth versioning. Bring it in line with the other SDKs:

- Add a verify job that checks the pushed tag equals the Cargo.toml version
  and fails fast on mismatch, before build/test/publish.
- Drop the step that rewrote Cargo.toml from the tag; cargo publish no longer
  needs --allow-dirty.
- Point the umbrella contract comment at the renamed reference/sdk-pipeline.md.

Verification: workflow YAML syntactically validated only; not executed.
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