xash3d-fwgs/scripts/yadisk_upload.sh

8 lines
213 B
Bash
Raw Normal View History

FOLDER_NAME=$DEPLOY_BRANCH-$TRAVIS_BRANCH
WEBDAV_SRV=https://$YANDEX_DISK_USER:$YANDEX_DISK_TOKEN@webdav.yandex.ru
for file in $*; do
2019-03-29 21:48:34 +01:00
echo "Uploading $file..."
curl -T $file $WEBDAV_SRV/$FOLDER_NAME/$file
done