Skip to content

Commit

Permalink
Play with GHR config
Browse files Browse the repository at this point in the history
  • Loading branch information
arranf committed Mar 30, 2019
1 parent a164903 commit 913bbe5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,13 @@ jobs:
- run:
name: "Get GHR"
command: go get github.com/tcnksm/ghr
- run:
name: "Export Version"
command: export VERSION=$(./hugo_to_json --version | cut -d " " -f 4) && echo ${VERSION}
- run:
name: "Publish Release on GitHub"
command:
VERSION=$(./hugo_to_json --version | cut -d " " -f 4) \
/go/bin/ghr -t ${GITHUB_TOKEN} -u ${CIRCLE_PROJECT_USERNAME} -r ${CIRCLE_PROJECT_REPONAME} -c ${CIRCLE_SHA1} -delete ${VERSION} ./project/hugo_to_json
/go/bin/ghr -t ${GITHUB_TOKEN} -u ${CIRCLE_PROJECT_USERNAME} -r ${CIRCLE_PROJECT_REPONAME} -c ${CIRCLE_SHA1} -delete ${VERSION} ./hugo_to_json
workflows:
version: 2
main:
Expand Down

0 comments on commit 913bbe5

Please sign in to comment.