openethereum/scripts/gitlab/publish-snap.sh

19 lines
579 B
Bash
Raw Normal View History

2018-06-02 04:13:28 +02:00
#!/bin/bash
set -e # fail on any error
set -u # treat unset variables as error
case ${CI_COMMIT_REF_NAME} in
nightly|*v2.1*) export CHANNEL="edge";;
2018-08-02 14:35:53 +02:00
beta|*v2.0*) export CHANNEL="beta";;
stable|*v1.11*) export CHANNEL="stable";;
2018-06-02 04:13:28 +02:00
*) 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
2018-08-02 14:35:53 +02:00
snapcraft push --release $CHANNEL "artifacts/parity_"$VERSION"_"$BUILD_ARCH".snap"
2018-06-02 04:13:28 +02:00
snapcraft status parity
snapcraft logout