TeaSpeak-Client/jenkins/deploy_build.sh
2019-07-03 13:16:38 +02:00

22 lines
392 B
Bash
Executable File

#!/usr/bin/env bash
cd "../$(dirname $0)"
if [[ "${teaclient_deploy_secret}" == "" ]]; then
echo "Missing deploy secret!"
exit 1
fi
if [[ $# -lt 1 ]]; then
echo "Missing build channel!"
exit 1
fi
npm run build-linux-64
if [[ $? -ne 0 ]]; then
echo "Failed to build project"
fi
npm run package-linux-64 $1
if [[ $? -ne 0 ]]; then
echo "Failed to package project"
fi