releasing

This commit is contained in:
Liam Galvin 2018-11-24 19:02:35 +00:00
parent 788ef6de75
commit a6020e331a
1 changed files with 23 additions and 5 deletions

View File

@ -21,6 +21,13 @@ jobs:
steps: steps:
- checkout - checkout
- run: make build-linux - run: make build-linux
- persist_to_workspace:
# Must be an absolute path, or relative path from working_directory. This is a directory on the container which is
# taken to be the root directory of the workspace.
root: .
# Must be relative path from root
paths:
- bin
build-darwin: build-darwin:
docker: docker:
# specify the version # specify the version
@ -29,14 +36,25 @@ jobs:
steps: steps:
- checkout - checkout
- run: make build-darwin - run: make build-darwin
- persist_to_workspace:
# Must be an absolute path, or relative path from working_directory. This is a directory on the container which is
# taken to be the root directory of the workspace.
root: .
# Must be relative path from root
paths:
- bin
release: release:
docker: docker:
# specify the version - image: circleci/golang:latest
- image: karalabe/xgo-latest:latest
working_directory: /go/src/github.com/liamg/aminal
steps: steps:
- checkout - attach_workspace:
- run: echo nothing to do # Must be absolute path or relative path from working_directory
at: ./workspace
- run:
name: "Publish Release on GitHub"
command: |
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/
workflows: workflows:
version: 2 version: 2
build: build: