2019-02-23 10:23:02 +00:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
2020-05-03 20:02:18 +00:00
|
|
|
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
|
2020-04-08 10:46:13 +00:00
|
|
|
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:33:12 +00:00
|
|
|
|
2019-02-23 10:38:59 +00:00
|
|
|
echo "Successfully uploaded ${#uploaded_files[@]} files. ${#failed_files[@]} uploads failed."
|
|
|
|
exit 0
|