[ci] Bump ghr tool used to post release artifacts to v0.14.0

Also make sure we only download it once per CI run, not three times...
pull/3158/head
Caleb Maclennan 3 years ago committed by Khaled Hosny
parent 80ff72f39d
commit a997f8918e
  1. 13
      .ci/publish_release_artifact.sh

@ -1,4 +1,5 @@
#!/usr/bin/env bash
set -e
set -o pipefail
@ -7,11 +8,13 @@ if [[ -z $GITHUB_TOKEN ]]; then
exit
fi
mkdir -p $HOME/.local/bin
export _GHR_VER=v0.13.0
export _GHR=ghr_${_GHR_VER}_linux_amd64
curl -sfL https://github.com/tcnksm/ghr/releases/download/$_GHR_VER/$_GHR.tar.gz |
tar xz -C $HOME/.local/bin --strip-components=1 $_GHR/ghr
if ! hash ghr 2> /dev/null; then
_GHR_VER=v0.14.0
_GHR=ghr_${_GHR_VER}_linux_amd64
mkdir -p $HOME/.local/bin
curl -sfL https://github.com/tcnksm/ghr/releases/download/$_GHR_VER/$_GHR.tar.gz |
tar xz -C $HOME/.local/bin --strip-components=1 $_GHR/ghr
fi
ghr -replace \
-u $CIRCLE_PROJECT_USERNAME \

Loading…
Cancel
Save