Skip to content

Commit d0c3ddf

Browse files
committed
[build] update circleci
1 parent 49ff0d0 commit d0c3ddf

File tree

1 file changed

+15
-11
lines changed

1 file changed

+15
-11
lines changed

.circleci/config.yml

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@ jobs:
55
- image: circleci/node:10.8.0
66
steps:
77
- checkout
8-
- attach_workspace:
9-
at: ./ui/dist
108
- run:
119
name: "Install dependencies"
1210
command: npm install
@@ -19,6 +17,10 @@ jobs:
1917
name: "Build"
2018
command: npm run build
2119
working_directory: ui
20+
- persist_to_workspace:
21+
root: .
22+
paths:
23+
- ui/dist/*
2224

2325
backend:
2426
docker:
@@ -28,19 +30,22 @@ jobs:
2830
steps:
2931
- checkout
3032
- attach_workspace:
31-
at: ./ui/dist
32-
- attach_workspace:
33-
at: ./release
33+
at: .
34+
- run: ls -al **
3435
- run: go get -v -t -d ./...
3536
- run: go test -v ./...
3637
- run:
3738
working_directory: cmd/ssl-game-controller
3839
command: |
39-
go get -v github.com/gobuffalo/packr/...
40+
go get -v github.com/gobuffalo/packr/packr
4041
GOOS=linux GOARCH=amd64 packr build -o ../../release/linux/ssl-game-controller
4142
GOOS=windows GOARCH=amd64 packr build -o ../../release/windows/ssl-game-controller.exe
4243
GOOS=darwin GOARCH=amd64 packr build -o ../../release/darwin/ssl-game-controller
4344
- run: ls -al **
45+
- persist_to_workspace:
46+
root: .
47+
paths:
48+
- release/*
4449

4550
deploy:
4651
docker:
@@ -49,7 +54,7 @@ jobs:
4954
working_directory: /go/src/github.com/g3force/ssl-game-controller
5055
steps:
5156
- attach_workspace:
52-
at: ./release
57+
at: .
5358
- run: ls -al **
5459

5560
publish-github-release:
@@ -58,7 +63,6 @@ jobs:
5863
steps:
5964
- attach_workspace:
6065
at: ./release
61-
- run: ls -al **
6266
- run:
6367
name: "Publish Release on GitHub"
6468
command: |
@@ -77,6 +81,6 @@ workflows:
7781
- deploy:
7882
requires:
7983
- backend
80-
- publish-github-release:
81-
requires:
82-
- backend
84+
# - publish-github-release:
85+
# requires:
86+
# - backend

0 commit comments

Comments
 (0)