From 298f02738fc7fbfec389a0f526faf43659f92de6 Mon Sep 17 00:00:00 2001 From: Curtis La Graff Date: Fri, 13 Jul 2018 14:31:37 -0400 Subject: [PATCH] pls work v4 (#20) * pls work v4 Signed-off-by: Curtis La Graff * pls work v4-1 Signed-off-by: Curtis La Graff * pls work v4-2 Signed-off-by: Curtis La Graff * pls work v4-3 Signed-off-by: Curtis La Graff * pls work v4-4 Signed-off-by: Curtis La Graff * pls work v4-5 Signed-off-by: Curtis La Graff * pls work v4-6 Signed-off-by: Curtis La Graff * pls work v4-7 Signed-off-by: Curtis La Graff * pls work v4-8 Signed-off-by: Curtis La Graff --- .circleci/config.yml | 29 +++++++---------------------- 1 file changed, 7 insertions(+), 22 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 971b7d0..a67e8a8 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -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/ @@ -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