[ci] Use `ghr` CLI tool to post Win32 artifact to GitHub
This commit is contained in:
parent
610ed3b42c
commit
c70f509022
|
@ -145,6 +145,16 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- attach_workspace:
|
- attach_workspace:
|
||||||
at: .
|
at: .
|
||||||
|
- run: |
|
||||||
|
if [[ -n $GITHUB_TOKEN ]]; then
|
||||||
|
export _GHR=ghr_v0.13.0_linux_amd64
|
||||||
|
curl -sL https://github.com/tcnksm/ghr/releases/download/v0.13.0/$_GHR.tar.gz | tar xz --strip-components=1 $_GHR/ghr
|
||||||
|
mv harfbuzz-win32{,-$CIRCLE_TAG}.zip
|
||||||
|
echo TOKEN IS = $GITHUB_TOKEN
|
||||||
|
./ghr -replace -u $CIRCLE_PROJECT_USERNAME -r $CIRCLE_PROJECT_REPONAME $CIRCLE_TAG harfbuzz-win32-$CIRCLE_TAG.zip
|
||||||
|
else
|
||||||
|
echo "No GITHUB_TOKEN secret found, artifact publishing skipped"
|
||||||
|
fi
|
||||||
|
|
||||||
workflows:
|
workflows:
|
||||||
version: 2
|
version: 2
|
||||||
|
|
Loading…
Reference in New Issue