Skip to content

Commit 93d4366

Browse files
authored
Add channel to release process, default to 'unstable' channel (#21)
1 parent 7c0cf2c commit 93d4366

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

release.sh

+6
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@ VERSION="$(echo $YB_GIT_BRANCH | sed -e 's|refs/tags/||g')"
88
TOKEN="${RELEASE_TOKEN}"
99
RELEASE_KEY="${RELEASE_KEY}"
1010

11+
if [ -z "${CHANNEL}" ]; then
12+
echo "Channel not set, will release as unstable"
13+
CHANNEL="unstable"
14+
fi
15+
1116
umask 077
1217

1318
cleanup() {
@@ -31,6 +36,7 @@ tar zxvf release-tool-stable-linux-amd64.tgz
3136
--signing-key="${KEY_FILE}" \
3237
--app="$APP" \
3338
--token="${TOKEN}" \
39+
--channel"${CHANNEL}" \
3440
-- \
3541
-ldflags "-X main.version=$VERSION -X 'main.date=$(date)'" \
3642
"github.com/yourbase/${PROJECT}"

0 commit comments

Comments
 (0)