Skip to content

Commit 0911c2c

Browse files
committed
Update circleci
1 parent e48aa86 commit 0911c2c

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

.circleci/config.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -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
@@ -45,7 +44,7 @@ jobs:
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
4948
workflows:
5049
version: 2
5150
main:

0 commit comments

Comments
 (0)