1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-22 22:13:35 +02:00
vcmi/CI/upload_package.sh

16 lines
456 B
Bash
Raw Normal View History

#!/bin/sh
2021-07-05 19:04:17 +02:00
if [ -z "$DEPLOY_RSA" ];
then
# Due to security measures travis not expose encryption keys for PR from forks
2021-07-05 19:04:17 +02:00
echo "Build generation is skipped for forks"
exit 0
fi
2021-07-05 19:04:17 +02:00
echo "$DEPLOY_RSA" > /tmp/deploy_rsa
chmod 600 /tmp/deploy_rsa
2021-07-05 19:04:17 +02:00
eval "$(ssh-agent -s)"
ssh-add /tmp/deploy_rsa
sftp -r -o StrictHostKeyChecking=no travis@beholder.vcmi.eu <<< "put $VCMI_PACKAGE_FILE_NAME.$PACKAGE_EXTENSION /incoming/$VCMI_PACKAGE_FILE_NAME.$PACKAGE_EXTENSION"