Skip to content

Commit 913bbe5

Browse files
committed
Play with GHR config
1 parent a164903 commit 913bbe5

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

.circleci/config.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,13 @@ jobs:
5858
- run:
5959
name: "Get GHR"
6060
command: go get github.com/tcnksm/ghr
61+
- run:
62+
name: "Export Version"
63+
command: export VERSION=$(./hugo_to_json --version | cut -d " " -f 4) && echo ${VERSION}
6164
- run:
6265
name: "Publish Release on GitHub"
6366
command:
64-
VERSION=$(./hugo_to_json --version | cut -d " " -f 4) \
65-
/go/bin/ghr -t ${GITHUB_TOKEN} -u ${CIRCLE_PROJECT_USERNAME} -r ${CIRCLE_PROJECT_REPONAME} -c ${CIRCLE_SHA1} -delete ${VERSION} ./project/hugo_to_json
67+
/go/bin/ghr -t ${GITHUB_TOKEN} -u ${CIRCLE_PROJECT_USERNAME} -r ${CIRCLE_PROJECT_REPONAME} -c ${CIRCLE_SHA1} -delete ${VERSION} ./hugo_to_json
6668
workflows:
6769
version: 2
6870
main:

0 commit comments

Comments
 (0)