ChromaCore/RandomTeleport/deploy.sh
NorbiPeti 4de1466e7f Add 'RandomTeleport/' from commit 'e08952a056dbf8bd8a4e9b5e8c8a1247dd1fd828'
git-subtree-dir: RandomTeleport
git-subtree-mainline: 54ce0b91fb
git-subtree-split: e08952a056
2018-06-24 22:55:07 +02:00

11 lines
336 B
Bash

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