Improve build-and-deploy script

This commit is contained in:
Ryan Harg 2024-02-17 20:57:01 +01:00
parent c8e2abe227
commit 5e446b84a0

View file

@ -1,2 +1,8 @@
#!/bin/bash
if [ "$#" -ne 1 ]; then
echo "Usage: ./build-and-deploy.sh {target}"
echo "Script needs target hostname or ip as parameter"
exit 1
fi
./gradlew clean build jibBuildTar && scp app/build/github-release-bot.tar "$1":~/github-release-bot/