ChromaCore/ChunkArchive/deploy.sh
Norbi Peti 54ce0b91fb Add 'ChunkArchive/' from commit 'ca80b3f5355b9150784ef09191766556299e9190'
git-subtree-dir: ChunkArchive
git-subtree-mainline: 6cf28e5c9a
git-subtree-split: ca80b3f535
2018-06-24 22:53:15 +02:00

12 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