@@ -28,13 +28,12 @@ jobs:
2828 name : Building
2929 command : |
3030 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
3433 - persist_to_workspace :
3534 root : .
3635 paths :
37- - artifacts
36+ - bin
3837 publish-github-release :
3938 docker :
4039 - image : cibuilds/github:0.13
4544 name : " Publish Release on GitHub"
4645 command : |
4746 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
4948workflows :
5049 version : 2
5150 main :
0 commit comments