File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -28,13 +28,12 @@ jobs:
28
28
name : Building
29
29
command : |
30
30
VERSION=${CIRCLE_TAG}
31
- find "resources/" -maxdepth 1 -mindepth 1 -exec cp -R -f {} artifacts/${1} \;
32
- GOOS=linux GOARCH=amd64 go build -ldflags "-X main.Version=${VERSION}" -o artifacts/app-${VERSION}-linux-amd64 main.go
33
- GOOS=darwin GOARCH=amd64 go build -ldflags "-X main.Version=${VERSION}" -o artifacts/app-${VERSION}-darwin-amd64 main.go
31
+ GOOS=linux GOARCH=amd64 go build -ldflags "-X main.Version=${VERSION}" -o bin/app-${VERSION}-linux-amd64 main.go
32
+ GOOS=darwin GOARCH=amd64 go build -ldflags "-X main.Version=${VERSION}" -o bin/app-${VERSION}-darwin-amd64 main.go
34
33
- persist_to_workspace :
35
34
root : .
36
35
paths :
37
- - artifacts
36
+ - bin
38
37
publish-github-release :
39
38
docker :
40
39
- image : cibuilds/github:0.13
45
44
name : " Publish Release on GitHub"
46
45
command : |
47
46
VERSION=${CIRCLE_TAG}
48
- ghr -t ${GITHUB_TOKEN} -u ${CIRCLE_PROJECT_USERNAME} -r ${CIRCLE_PROJECT_REPONAME} -c ${CIRCLE_SHA1} -delete ${VERSION} ~/golang-example-app/artifacts
47
+ ghr -t ${GITHUB_TOKEN} -u ${CIRCLE_PROJECT_USERNAME} -r ${CIRCLE_PROJECT_REPONAME} -c ${CIRCLE_SHA1} -delete ${VERSION} ~/golang-example-app/bin
49
48
workflows :
50
49
version : 2
51
50
main :
You can’t perform that action at this time.
0 commit comments