From 7228e3dd6384fb37c39cf2cfd21b52ae6d48646b Mon Sep 17 00:00:00 2001 From: Hpsaturn Date: Sun, 12 Feb 2023 12:50:22 +0100 Subject: [PATCH] improved release publish tool, changed to gh release tool --- deploy.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/deploy.sh b/deploy.sh index 5109781a..36f2d123 100755 --- a/deploy.sh +++ b/deploy.sh @@ -111,8 +111,12 @@ publish_release () { echo "********** Publishing release *****************" echo "***********************************************" echo "" + echo "Publishing release: v${SRC_VER} rev${SRC_REV}" + echo "uploading: ${OUTPUT}" COMMIT_LOG=`git log -1 --format='%ci %H %s'` - github-release upload --owner kike-canaries --repo canairio_sensorlib --tag "v${SRC_VER}" --release-name "v${SRC_VER} rev${SRC_REV}" --body "${COMMIT_LOG}" $OUTPUT + git tag -a "v${SRC_VER}" -m "release v${SRC_VER} rev${SRC_REV}" + git push origin "v${SRC_VER}" + git log -n 10 --pretty=format:"%h %s" | gh release create "v${SRC_VER}" -F - -t "v${SRC_VER} rev${SRC_REV}" -p ${OUTPUT} echo "" echo "***********************************************" echo "************* done *********************"