ButtonPresents/deploy.sh

11 lines
303 B
Bash
Raw Normal View History

2017-06-28 15:20:15 +00:00
#!/bin/sh
FILENAME=$(find target/ ! -name '*original*' -name '*.jar')
echo Found file: $FILENAME
if [ $1 = 'production' ]; then
echo Production mode
echo $UPLOAD_KEY > upload_key
2017-06-28 16:12:24 +00:00
yes | scp -B -i upload_key -o StrictHostKeyChecking=no $FILENAME travis@server.figytuna.com:/minecraft/main/plugins
2017-06-28 15:20:15 +00:00
fi
2017-06-28 16:12:24 +00:00