Skip to content

Commit 7228e3d

Browse files
committed
improved release publish tool, changed to gh release tool
1 parent 8d5b1cf commit 7228e3d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

deploy.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,12 @@ publish_release () {
111111
echo "********** Publishing release *****************"
112112
echo "***********************************************"
113113
echo ""
114+
echo "Publishing release: v${SRC_VER} rev${SRC_REV}"
115+
echo "uploading: ${OUTPUT}"
114116
COMMIT_LOG=`git log -1 --format='%ci %H %s'`
115-
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
117+
git tag -a "v${SRC_VER}" -m "release v${SRC_VER} rev${SRC_REV}"
118+
git push origin "v${SRC_VER}"
119+
git log -n 10 --pretty=format:"%h %s" | gh release create "v${SRC_VER}" -F - -t "v${SRC_VER} rev${SRC_REV}" -p ${OUTPUT}
116120
echo ""
117121
echo "***********************************************"
118122
echo "************* done *********************"

0 commit comments

Comments
 (0)