Skip to content

Commit

Permalink
scripts: Remove need for jq and start signing release tags
Browse files Browse the repository at this point in the history
Signed-off-by: Siddharth Chandrasekaran <sidcha.dev@gmail.com>
  • Loading branch information
sidcha committed Nov 12, 2024
1 parent 4305338 commit 3684315
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/make-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ function commit_release() {
version=$(perl -ne 'print $1 if (/^version = "(.+)"$/)' $crate/Cargo.toml)
git add $crate/Cargo.toml &&
git commit -s -m "$crate: Release v$version" &&
git tag "$crate-v$version" -a -m "Release $version"
git tag "$crate-v$version" -s -a -m "Release $version"
}

function do_cargo_release() {
Expand All @@ -56,7 +56,7 @@ function do_cargo_release() {
}

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

0 comments on commit 3684315

Please sign in to comment.