2018-10-02 01:03:58 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
set -e # fail on any error
|
|
|
|
set -u # treat unset variables as error
|
|
|
|
|
|
|
|
echo "__________Register Release__________"
|
|
|
|
DATA="secret=$RELEASES_SECRET"
|
|
|
|
|
|
|
|
echo "Pushing release to Mainnet"
|
2019-09-12 18:43:53 +02:00
|
|
|
./tools/safe-curl.sh $DATA "https://update.parity.io/push-release/${SCHEDULE_TAG:-${CI_COMMIT_REF_NAME}}/$CI_COMMIT_SHA"
|
2018-10-02 01:03:58 +02:00
|
|
|
|
|
|
|
cd artifacts
|
|
|
|
ls -l | sort -k9
|
|
|
|
filetest=( * )
|
|
|
|
echo ${filetest[*]}
|
|
|
|
for DIR in "${filetest[@]}";
|
|
|
|
do
|
|
|
|
cd $DIR
|
|
|
|
if [[ $DIR =~ "windows" ]];
|
|
|
|
then
|
|
|
|
WIN=".exe";
|
|
|
|
else
|
|
|
|
WIN="";
|
|
|
|
fi
|
|
|
|
sha3=$(cat parity.sha3 | awk '{print $1}')
|
|
|
|
case $DIR in
|
|
|
|
x86_64* )
|
|
|
|
DATA="commit=$CI_COMMIT_SHA&sha3=$sha3&filename=parity$WIN&secret=$RELEASES_SECRET"
|
2019-09-12 18:43:53 +02:00
|
|
|
../../tools/safe-curl.sh $DATA "https://update.parity.io/push-build/${SCHEDULE_TAG:-${CI_COMMIT_REF_NAME}}/$DIR"
|
2018-10-02 01:03:58 +02:00
|
|
|
;;
|
|
|
|
esac
|
|
|
|
cd ..
|
|
|
|
done
|