mirror of
https://github.com/YGGverse/xash3d-fwgs.git
synced 2025-01-11 15:47:55 +00:00
28 lines
570 B
Bash
28 lines
570 B
Bash
##################################
|
|
#
|
|
# GitHub Releases
|
|
#
|
|
##################################
|
|
|
|
set +x
|
|
|
|
wget -O upload.sh "https://raw.githubusercontent.com/FWGS/uploadtool/master/upload.sh"
|
|
chmod +x upload.sh
|
|
|
|
export GITHUB_TOKEN=$GH_TOKEN
|
|
./upload.sh $*
|
|
|
|
##################################
|
|
#
|
|
# 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
|