2017-06-12 17:17:10 +02:00
|
|
|
#!/bin/sh
|
2021-07-05 19:04:17 +02:00
|
|
|
if [ -z "$DEPLOY_RSA" ];
|
2017-06-28 01:46:56 +02:00
|
|
|
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"
|
2017-06-28 01:46:56 +02:00
|
|
|
exit 0
|
|
|
|
fi
|
2021-07-05 19:04:17 +02:00
|
|
|
|
|
|
|
echo "$DEPLOY_RSA" > /tmp/deploy_rsa
|
2017-06-12 17:17:10 +02:00
|
|
|
chmod 600 /tmp/deploy_rsa
|
2021-07-05 19:04:17 +02:00
|
|
|
|
2017-06-12 17:17:10 +02:00
|
|
|
eval "$(ssh-agent -s)"
|
|
|
|
ssh-add /tmp/deploy_rsa
|
|
|
|
|
2021-07-12 21:00:29 +02:00
|
|
|
sftp -r -o StrictHostKeyChecking=no travis@beholder.vcmi.eu <<< "put $VCMI_PACKAGE_FILE_NAME.$PACKAGE_EXTENSION /incoming/$VCMI_PACKAGE_FILE_NAME.$PACKAGE_EXTENSION"
|