aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts
diff options
context:
space:
mode:
authorGravatar Damien Martin-Guillerez <dmarting@google.com>2015-09-09 09:45:20 +0000
committerGravatar Lukacs Berki <lberki@google.com>2015-09-09 12:07:04 +0000
commit7e6351a669438bbb3ca9ed38d84278b24c58a434 (patch)
treee264d108e7fd7bab60dabf14ada3a23aea519fc1 /scripts
parent12ec9df9427f3458f916e27078e4a31605666ce0 (diff)
Fix release to github script
github-release actually takes a glob, not a list of file and tmpdir was not global so because errexit was set it leads to the job failing. Tested by simulating a release environment on my machine but we cannot fully test it until the next release. -- MOS_MIGRATED_REVID=102642172
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/ci/build.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/scripts/ci/build.sh b/scripts/ci/build.sh
index d2616c4e43..823a9f36d7 100755
--- a/scripts/ci/build.sh
+++ b/scripts/ci/build.sh
@@ -185,7 +185,9 @@ function release_to_github() {
fi
local github_repo="$(echo "$url" | sed -E 's|https?://github.com/([^/]*/[^/]*).*$|\1|')"
if [ -n "${release_name}" ] && [ -z "${rc}" ]; then
- "${GITHUB_RELEASE}" "${github_repo}" "${release_name}" "" "# $(git_commit_msg)" "${@}"
+ mkdir -p "${tmpdir}/to-github"
+ cp "${@}" "${tmpdir}/to-github"
+ "${GITHUB_RELEASE}" "${github_repo}" "${release_name}" "" "# $(git_commit_msg)" "${tmpdir}/to-github/"'*'
fi
}
@@ -283,7 +285,7 @@ function deploy_release() {
# RELEASE_EMAIL_CONTENT: the content of the email to be sent
function bazel_release() {
local README=$2/README.md
- local tmpdir=$(mktemp -d ${TMPDIR:-/tmp}/tmp.XXXXXXXX)
+ tmpdir=$(mktemp -d ${TMPDIR:-/tmp}/tmp.XXXXXXXX)
trap 'rm -fr ${tmpdir}' EXIT
while (( $# > 1 )); do
local platform=$1