Skip to content

Commit

Permalink
improved release publish tool, changed to gh release tool
Browse files Browse the repository at this point in the history
  • Loading branch information
hpsaturn committed Feb 12, 2023
1 parent 8d5b1cf commit 7228e3d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 *********************"
Expand Down

0 comments on commit 7228e3d

Please sign in to comment.