ChromaCore/deploy.sh
NorbiPeti 739276e797
PR #39 merged
# Conflicts:
#	ButtonCore/src/main/java/buttondevteam/lib/chat/Channel.java
#	ButtonProcessor/src/main/java/buttondevteam/buttonproc/ButtonProcessor.java
2018-05-15 23:10:59 +02:00

10 lines
344 B
Bash
Executable file

#!/bin/sh
FILENAME=$(find ButtonCore/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