Repository navigation
release.sh --exec (sync Cargo.lock before the release commit); Rust crate release guide (0.3.7) - #34
Merged
Merged
Conversation
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.
examples/release.sh --exec CMD: runs CMD (bash) after the version bump and CHANGELOG.md, before the commit. Tracked files it changes are committed with the release (the tree is required clean at the start).NEXT_VERSIONis exported. Shown in--dry-run. A failing command stops before commit/tag.--bump-file Cargo.toml,Cargo.lockstill holds the old version, socargo publish --lockedfails.--exec "cargo update --workspace"fixes that in the same commit.docs/rust-crate.html: Cargo.toml + Cargo.lock bump, CHANGELOG.md, tag; tag-push workflow (tag vscargo metadata,cargo test --locked, crates.io trusted publishing viarust-lang/crates-io-auth-action@v1,cargo publish --locked,gh release createwith the action's notes). actionlint clean.tests/test_rust_crate_docs.pyrebuilds the page's example with real cargo (offline), compares script output / release-commit files / CHANGELOG / Release body, checkscargo metadata --lockedpasses with--execand fails without, and runs the tag check step. Skips if cargo is missing.