upload_package.sh 456 B

123456789101112131415
  1. #!/bin/sh
  2. if [ -z "$DEPLOY_RSA" ];
  3. then
  4. # Due to security measures travis not expose encryption keys for PR from forks
  5. echo "Build generation is skipped for forks"
  6. exit 0
  7. fi
  8. echo "$DEPLOY_RSA" > /tmp/deploy_rsa
  9. chmod 600 /tmp/deploy_rsa
  10. eval "$(ssh-agent -s)"
  11. ssh-add /tmp/deploy_rsa
  12. sftp -r -o StrictHostKeyChecking=no [email protected] <<< "put $VCMI_PACKAGE_FILE_NAME.$PACKAGE_EXTENSION /incoming/$VCMI_PACKAGE_FILE_NAME.$PACKAGE_EXTENSION"