Skip to content

Commit

Permalink
pls work v4 (#20)
Browse files Browse the repository at this point in the history
* pls work v4

Signed-off-by: Curtis La Graff <curtis@lagraff.me>

* pls work v4-1

Signed-off-by: Curtis La Graff <curtis@lagraff.me>

* pls work v4-2

Signed-off-by: Curtis La Graff <curtis@lagraff.me>

* pls work v4-3

Signed-off-by: Curtis La Graff <curtis@lagraff.me>

* pls work v4-4

Signed-off-by: Curtis La Graff <curtis@lagraff.me>

* pls work v4-5

Signed-off-by: Curtis La Graff <curtis@lagraff.me>

* pls work v4-6

Signed-off-by: Curtis La Graff <curtis@lagraff.me>

* pls work v4-7

Signed-off-by: Curtis La Graff <curtis@lagraff.me>

* pls work v4-8

Signed-off-by: Curtis La Graff <curtis@lagraff.me>
  • Loading branch information
clagraff committed Jul 13, 2018
1 parent 61b5452 commit 298f027
Showing 1 changed file with 7 additions and 22 deletions.
29 changes: 7 additions & 22 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,30 +25,21 @@ jobs:
- run: go get -v -t -d ./...
- run: go test -v --coverprofile cover.out ./...

build:
publish:
docker:
- image: circleci/golang:1.9

working_directory: /go/src/github.com/clagraff/raven
steps:
- checkout
- run: go get -v -t -d ./...
- run: go get -u github.com/mitchellh/gox
- run: gox --output="artifacts/{{.Dir}}_{{.OS}}_{{.Arch}}"

publish-github-release:
docker:
- image: circleci/golang:1.8
working_directory: /go/src/github.com/clagraff/raven
steps:
- attach_workspace:
at: ./artifacts
- checkout
- run: go get -v -t -d ./...
- run: go get github.com/tcnksm/ghr
- run: go get -u github.com/mitchellh/gox
- run: gox --verbose --output="artifacts/{{.Dir}}_{{.OS}}_{{.Arch}}"
- run:
name: "Publish Release on GitHub"
name: "Publish"
command: |
go get -v -t -d ./...
go get github.com/tcnksm/ghr
VERSION=$(go run main.go version)
ghr -t ${GITHUB_TOKEN} -u ${CIRCLE_PROJECT_USERNAME} -r ${CIRCLE_PROJECT_REPONAME} -c ${CIRCLE_SHA1} -delete ${VERSION} ./artifacts/
Expand All @@ -58,16 +49,10 @@ workflows:
jobs:
- linting
- tests
- build:
- publish:
requires:
- linting
- tests
filters:
branches:
only: master
- publish-github-release:
requires:
- build
filters:
branches:
only: master

0 comments on commit 298f027

Please sign in to comment.