github-releases-bot/build-and-deploy.sh

9 lines
254 B
Bash
Raw Normal View History

#!/bin/bash
2024-02-17 20:57:01 +01:00
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/