TeaWeb/scripts/travis/deploy_github.sh

18 lines
525 B
Bash
Raw Normal View History

2019-02-23 10:23:02 +00:00
#!/usr/bin/env bash
cd "$(dirname "$0")/../../" || { echo "Failed to enter base dir"; exit 1; }
source ./scripts/travis/properties.sh
2020-04-02 23:14:37 +00:00
2019-02-23 10:23:02 +00:00
if [[ -z "${GIT_AUTHTOKEN}" ]]; then
echo "GIT_AUTHTOKEN isn't set. Don't deploying build!"
exit 0
2019-02-23 10:23:02 +00:00
fi
GIT_COMMIT_SHORT=$(git rev-parse --short HEAD)
GIT_COMMIT_LONG=$(git rev-parse HEAD)
echo "Deploying $GIT_COMMIT_SHORT ($GIT_COMMIT_LONG) to github."
echo "Generating release"
2019-02-23 10:38:59 +00:00
echo "Successfully uploaded ${#uploaded_files[@]} files. ${#failed_files[@]} uploads failed."
exit 0