snap: deploy: fix major channels not being pushed (#4222)

This commit is contained in:
Casper da Costa-Luis
2020-07-17 05:05:50 +03:00
committed by GitHub
parent ef82cedd00
commit 4edf368d68
2 changed files with 5 additions and 16 deletions
+5 -8
View File
@@ -40,17 +40,14 @@ if [ "$TRAVIS_OS_NAME" == "linux" ]; then
if [[ -n "$TRAVIS_TAG" ]]; then
if [[ $(echo "$TRAVIS_TAG" | grep -E '^[0-9]+\.[0-9]+\.[0-9]+$') ]]; then
echo "export SNAP_CHANNEL=stable" >>env.sh
echo "export SNAP_CHANNEL_MAJOR=v$TAG_MAJOR/stable" >>env.sh
SNAP_CHANNEL=stable
else
echo "export SNAP_CHANNEL=beta" >>env.sh
echo "export SNAP_CHANNEL_MAJOR=v$TAG_MAJOR/beta" >>env.sh
SNAP_CHANNEL=beta
fi
else
echo "export SNAP_CHANNEL=edge" >>env.sh
echo "export SNAP_CHANNEL_MAJOR=v$TAG_MAJOR/edge" >>env.sh
SNAP_CHANNEL=edge
fi
echo "export SNAP_CHANNEL=${SNAP_CHANNEL},v${TAG_MAJOR}/${SNAP_CHANNEL}" >>env.sh
# NOTE: after deprecating this major version branch, uncomment this line
# echo "unset SNAP_CHANNEL" >>env.sh
# echo "export SNAP_CHANNEL=v${TAG_MAJOR}/${SNAP_CHANNEL}" >>env.sh
fi