Skip to content
This repository was archived by the owner on Mar 6, 2023. It is now read-only.

Commit c26cde1

Browse files
committed
Download ghr in release pipeline.
Signed-off-by: Ben Kochie <[email protected]>
1 parent fc0ab82 commit c26cde1

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

.circleci/config.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,9 @@ jobs:
4848
GIT_USER: cloudalchemybot
4949
GIT_CHGLOG_URL: https://github.com/git-chglog/git-chglog/releases/download/v0.14.0/git-chglog_0.14.0_linux_amd64.tar.gz
5050
GIT_CHGLOG_SUM: ed65b1c1dad41ca0372ebc86cf4102cdbb3397259461f1c3730c4c61075a618a
51+
GHR_URL: https://github.com/tcnksm/ghr/releases/download/v0.13.0/ghr_v0.13.0_linux_amd64.tar.gz
52+
GHR_SUM: c428627270ae26e206cb526cb8c7bdfba475dd278f6691ddaf863355adadfa13
53+
GHR_FILE: ghr_v0.13.0_linux_amd64/ghr
5154
steps:
5255
- checkout
5356
- run: pip install git-semver
@@ -69,6 +72,13 @@ jobs:
6972
sha256sum -c <(echo "${GIT_CHGLOG_SUM} git-chglog.tar.gz") && \
7073
tar -zvxf git-chglog.tar.gz git-chglog && \
7174
chmod 755 git-chglog
75+
- run:
76+
name: Downloading ghr
77+
command: |
78+
curl -sL --fail "${GHR_URL}" -o 'ghr.tar.gz' && \
79+
sha256sum -c <(echo "${GHR_SUM} ghr.tar.gz") && \
80+
tar --strip-components 1 -zvxf ghr.tar.gz "${GHR_FILE}" && \
81+
chmod 755 ghr
7282
- run: ./git-chglog --output CHANGELOG.md --next-tag "${NEW_TAG}"
7383
- run: git --no-pager diff
7484
- run: git add CHANGELOG.md
@@ -77,7 +87,7 @@ jobs:
7787
- run:
7888
name: Publishing release
7989
command: |
80-
ghr \
90+
./ghr \
8191
-t ${GH_TOKEN} \
8292
-u ${CIRCLE_PROJECT_USERNAME} \
8393
-r ${CIRCLE_PROJECT_REPONAME} \

0 commit comments

Comments
 (0)