19 lines
578 B
Bash
Executable File
19 lines
578 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -e # fail on any error
|
|
set -u # treat unset variables as error
|
|
|
|
case ${CI_COMMIT_REF_NAME} in
|
|
nightly|*v2.2*) export CHANNEL="edge";;
|
|
beta|*v2.1*) export CHANNEL="beta";;
|
|
stable|*v2.0*) export CHANNEL="stable";;
|
|
*) echo "No release" exit 0;;
|
|
esac
|
|
echo "Release channel :" $CHANNEL " Branch/tag: " $CI_COMMIT_REF_NAME
|
|
|
|
echo $SNAPCRAFT_LOGIN_PARITY_BASE64 | base64 --decode > snapcraft.login
|
|
snapcraft login --with snapcraft.login
|
|
snapcraft push --release $CHANNEL "artifacts/parity_"$VERSION"_"$BUILD_ARCH".snap"
|
|
snapcraft status parity
|
|
snapcraft logout
|