ButtonPresents/ChunkArchive/deploy.sh
NorbiPeti 5b6d1a9f14 Add 'ChunkArchive/' from commit 'ca80b3f5355b9150784ef09191766556299e9190'
git-subtree-dir: ChunkArchive
git-subtree-mainline: 8e0339cfaa
git-subtree-split: ca80b3f535
2018-08-05 12:21:06 +02:00

11 lines
324 B
Bash

#!/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
chmod 400 upload_key
yes | scp -B -i upload_key -o StrictHostKeyChecking=no $FILENAME travis@server.figytuna.com:/minecraft/main/plugins
fi