Skip to content
This repository was archived by the owner on Nov 6, 2020. It is now read-only.

Commit bbdfd21

Browse files
committed
snap: prefix version and populate candidate channel (#10343)
* snap: populate candidate releases with beta snaps to avoid stale channel * snap: prefix version with v*
1 parent b53e56c commit bbdfd21

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

scripts/gitlab/publish-snap.sh

+5-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ set -e # fail on any error
44
set -u # treat unset variables as error
55

66
# some necromancy:
7-
# gsub(/"/, "", $2) deletes "qoutes"
7+
# gsub(/"/, "", $2) deletes "qoutes"
88
# gsub(/ /, "", $2) deletes whitespaces
99
TRACK=`awk -F '=' '/^track/ {gsub(/"/, "", $2); gsub(/ /, "", $2); print $2}' ./util/version/Cargo.toml`
1010
echo Track is: $TRACK
@@ -16,6 +16,7 @@ case ${TRACK} in
1616
*) echo "No release" && exit 0;;
1717
esac
1818

19+
VERSION="v"$VERSION
1920
SNAP_PACKAGE="parity_"$VERSION"_"$BUILD_ARCH".snap"
2021

2122
echo "__________Create snap package__________"
@@ -48,5 +49,8 @@ echo "Release channel :" $CHANNEL " Branch/tag: " $CI_COMMIT_REF_NAME
4849
echo $SNAPCRAFT_LOGIN_PARITY_BASE64 | base64 --decode > snapcraft.login
4950
snapcraft login --with snapcraft.login
5051
snapcraft push --release $CHANNEL $SNAP_PACKAGE
52+
case ${CHANNEL} in
53+
beta) snapcraft push --release candidate $SNAP_PACKAGE;;
54+
esac
5155
snapcraft status parity
5256
snapcraft logout

0 commit comments

Comments
 (0)