bd3bc5c168
* Updating the CI system with the publication of releases and binary files on github Signed-off-by: Denis S. Soldatov aka General-Beck <general.beck@gmail.com> * add missed scripts * chmod +x scripts * fix download link for github * rebuilding CI scripts * small fixes * update submodule wasm tests * ci: fix merge leftovers * ci: remove gitlab-next from ci triggers * ci: fix git add in docs script * ci: use nightly instead of master for publish triggers * ci: remove sleep from gitlab config * ci: replace ':' with '-' in gitlab targets * ci: fix recursive copy in docs script
19 lines
579 B
Bash
Executable File
19 lines
579 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.1*) export CHANNEL="edge";;
|
|
beta|*v2.0*) export CHANNEL="beta";;
|
|
stable|*v1.11*) 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
|