Skip to content

Commit 18cf8cc

Browse files
author
Ganeshwara Herawan Hananda
authored
Fix bugs with deploy-github (#161)
## What is the goal of this PR? Fix bugs in deploy-github which causes the job to fail: - Update the code for retrieving `ghr` binary - Installed `certifi` which is required by the release notes automation
1 parent f4858b7 commit 18cf8cc

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.circleci/config.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -176,14 +176,17 @@ jobs:
176176
- install-bazel-linux-rbe
177177
- checkout
178178
- run: |
179+
pip install certifi
179180
export RELEASE_NOTES_TOKEN=$REPO_GITHUB_TOKEN
180181
bazel run @graknlabs_build_tools//ci:release-notes -- workbase $(cat VERSION) ./RELEASE_TEMPLATE.md
181182
- run:
182183
name: "Publish Draft Release on GitHub"
183184
command: |
184-
ghr -t ${REPO_GITHUB_TOKEN} -u ${CIRCLE_PROJECT_USERNAME} \
185-
-r ${CIRCLE_PROJECT_REPONAME} -b "$(cat ./RELEASE_TEMPLATE.md)" \
186-
-c ${CIRCLE_SHA1} -delete -draft $(cat VERSION) ~/distribution/
185+
wget https://github.com/tcnksm/ghr/releases/download/v0.12.1/ghr_v0.12.1_linux_amd64.tar.gz
186+
tar -xf ghr_v0.12.1_linux_amd64.tar.gz
187+
ghr_v0.12.1_linux_amd64/ghr -t ${REPO_GITHUB_TOKEN} -u ${CIRCLE_PROJECT_USERNAME} \
188+
-r ${CIRCLE_PROJECT_REPONAME} -b "$(cat ./RELEASE_TEMPLATE.md)" \
189+
-c ${CIRCLE_SHA1} -delete -draft $(cat VERSION) ~/distribution/
187190
188191
deploy-brew-release:
189192
machine: true

0 commit comments

Comments
 (0)