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