mirror of
https://github.com/fluencelabs/rust-libp2p
synced 2025-06-10 00:21:22 +00:00
docs/release: Only choose crate name not bench name (#1897)
Some `Cargo.toml` files contain multiple `name` fields, e.g. the crate name and the benchmark name (see https://github.com/libp2p/rust-libp2p/blob/master/core/Cargo.toml). Only choose the first one when constructing the tag.
This commit is contained in:
parent
dd9f56e7f9
commit
47c5c80433
@ -25,7 +25,7 @@ documentation will refer to `X.Y.Z` as _major_, _minor_ and _patch_ version.
|
||||
|
||||
```bash
|
||||
cd $CRATE-PATH
|
||||
tag="$(sed -En 's/^name = \"(.*)\"$/\1/p' Cargo.toml)-$(sed -En 's/^version = \"(.*)\"$/\1/p' Cargo.toml)"
|
||||
tag="$(sed -En 's/^name = \"(.*)\"$/\1/p' Cargo.toml | head -n 1)-$(sed -En 's/^version = \"(.*)\"$/\1/p' Cargo.toml)"
|
||||
# Use `-s` for a GPG signed tag or `-a` for an annotated tag.
|
||||
git tag -s "${tag}" -m "${tag}"
|
||||
git push origin "${tag}"
|
||||
|
Loading…
x
Reference in New Issue
Block a user