Skip to content

Commit 3684315

Browse files
committed
scripts: Remove need for jq and start signing release tags
Signed-off-by: Siddharth Chandrasekaran <[email protected]>
1 parent 4305338 commit 3684315

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/make-release.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ function commit_release() {
4545
version=$(perl -ne 'print $1 if (/^version = "(.+)"$/)' $crate/Cargo.toml)
4646
git add $crate/Cargo.toml &&
4747
git commit -s -m "$crate: Release v$version" &&
48-
git tag "$crate-v$version" -a -m "Release $version"
48+
git tag "$crate-v$version" -s -a -m "Release $version"
4949
}
5050

5151
function do_cargo_release() {
@@ -56,7 +56,7 @@ function do_cargo_release() {
5656
}
5757

5858
function do_libosdp_sys_bump() {
59-
latest_release=$(curl -s https://api.github.com/repos/gotoMain/libosdp/releases/latest | jq -r .tag_name)
59+
latest_release=$(curl -s https://api.github.com/repos/gotoMain/libosdp/releases/latest | grep 'tag_name' | perl -pe 's|\s+"tag_name": "(.+)",|$1|')
6060
version=$(perl -ne 'print $1 if (/^version = "(.+)"$/)' libosdp-sys/Cargo.toml)
6161
if [[ "${latest_release}" == "v${version}" ]]; then
6262
echo "Nothing to be done"

0 commit comments

Comments
 (0)