releasing

This commit is contained in:
Liam Galvin 2018-11-24 19:54:14 +00:00
parent e536265698
commit dbe5688fa0
1 changed files with 3 additions and 2 deletions

View File

@ -39,13 +39,14 @@ jobs:
docker: docker:
- image: circleci/golang:latest - image: circleci/golang:latest
steps: steps:
- run: mkdir -p bin
- attach_workspace: - attach_workspace:
at: /workspace at: bin
- run: - run:
name: "Publish Release on GitHub" name: "Publish Release on GitHub"
command: | command: |
go get github.com/tcnksm/ghr go get github.com/tcnksm/ghr
ghr -t ${GITHUB_TOKEN} -u ${CIRCLE_PROJECT_USERNAME} -r ${CIRCLE_PROJECT_REPONAME} -c ${CIRCLE_SHA1} -delete ${CIRCLE_TAG} /workspace/bin/ ghr -t ${GITHUB_TOKEN} -u ${CIRCLE_PROJECT_USERNAME} -r ${CIRCLE_PROJECT_REPONAME} -c ${CIRCLE_SHA1} -delete ${CIRCLE_TAG} bin/
workflows: workflows:
version: 2 version: 2
build: build: