Skip to content

Commit 0f8d287

Browse files
committed
[build] update circleci
1 parent e68a882 commit 0f8d287

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

.circleci/config.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
- run:
3737
working_directory: cmd/ssl-game-controller
3838
command: |
39-
go get -v github.com/gobuffalo/packr
39+
go get -v github.com/gobuffalo/packr/...
4040
GOOS=linux GOARCH=amd64 packr build -o ../../release/linux/ssl-game-controller
4141
GOOS=windows GOARCH=amd64 packr build -o ../../release/windows/ssl-game-controller.exe
4242
GOOS=darwin GOARCH=amd64 packr build -o ../../release/darwin/ssl-game-controller
@@ -47,12 +47,10 @@ jobs:
4747

4848
working_directory: /go/src/github.com/g3force/ssl-game-controller
4949
steps:
50-
- checkout
5150
- attach_workspace:
5251
at: ./release
5352
- run: ll release && tree release
5453

55-
5654
publish-github-release:
5755
docker:
5856
- image: circleci/golang:1.8
@@ -63,8 +61,8 @@ jobs:
6361
name: "Publish Release on GitHub"
6462
command: |
6563
go get github.com/tcnksm/ghr
66-
VERSION=$(my-binary --version)
67-
ghr -t ${GITHUB_TOKEN} -u ${CIRCLE_PROJECT_USERNAME} -r ${CIRCLE_PROJECT_REPONAME} -c ${CIRCLE_SHA1} -delete ${VERSION} ./artifacts/
64+
VERSION=latest
65+
ghr -t ${GITHUB_TOKEN} -u ${CIRCLE_PROJECT_USERNAME} -r ${CIRCLE_PROJECT_REPONAME} -c ${CIRCLE_SHA1} -delete ${VERSION} ./release/
6866
6967
workflows:
7068
version: 2
@@ -75,5 +73,8 @@ workflows:
7573
requires:
7674
- frontend
7775
- deploy:
76+
requires:
77+
- backend
78+
- publish-github-release:
7879
requires:
7980
- backend

0 commit comments

Comments
 (0)