2019-06-30 23:40:40 +02:00
|
|
|
##################################
|
|
|
|
#
|
|
|
|
# GitHub Releases
|
|
|
|
#
|
|
|
|
##################################
|
|
|
|
|
|
|
|
set +x
|
|
|
|
|
2019-09-29 17:39:33 +02:00
|
|
|
# Disabled until GitHub sends prereleases to email
|
2019-06-30 23:40:40 +02:00
|
|
|
|
2019-09-29 17:39:33 +02:00
|
|
|
# wget -O upload.sh "https://raw.githubusercontent.com/FWGS/uploadtool/master/upload.sh"
|
|
|
|
# chmod +x upload.sh
|
|
|
|
|
|
|
|
# export GITHUB_TOKEN=$GH_TOKEN
|
|
|
|
# ./upload.sh $*
|
2019-09-29 17:38:19 +02:00
|
|
|
|
|
|
|
##################################
|
|
|
|
#
|
|
|
|
# Yandex.Disk
|
|
|
|
#
|
|
|
|
##################################
|
|
|
|
|
|
|
|
FOLDER_NAME=$DEPLOY_BRANCH-$TRAVIS_BRANCH
|
|
|
|
WEBDAV_SRV=https://$YANDEX_DISK_USER:$YANDEX_DISK_TOKEN@webdav.yandex.ru
|
|
|
|
|
|
|
|
for file in $*; do
|
|
|
|
echo "Uploading $file..."
|
|
|
|
curl -T $file $WEBDAV_SRV/$FOLDER_NAME/$file
|
|
|
|
done
|