File tree Expand file tree Collapse file tree 3 files changed +8
-29
lines changed Expand file tree Collapse file tree 3 files changed +8
-29
lines changed Original file line number Diff line number Diff line change 1
1
version : 2
2
2
3
3
jobs :
4
- build :
4
+ release :
5
5
docker :
6
6
- image : circleci/golang:1.11
7
7
environment :
8
8
GO111MODULE : " on"
9
9
working_directory : /go/src/github.com/meinto/git-semver
10
10
steps :
11
11
- checkout
12
- - run : go get ./...
13
- - run : ./.circleci/build.sh
14
- - save_cache :
15
- key : binaries
16
- paths :
17
- - ./build
18
- deploy :
19
- docker :
20
- - image : circleci/golang:1.11
21
- environment :
22
- GO111MODULE : " on"
23
- working_directory : /go/src/github.com/meinto/git-semver
24
- steps :
25
- - checkout
26
- - restore_cache :
27
- keys :
28
- - binaries
29
- - run : go get -u github.com/tcnksm/ghr
30
- - run : ghr -t $GITHUB_TOKEN v$(cat VERSION) build
12
+ - run : curl -sL https://git.io/goreleaser | bash
31
13
32
14
workflows :
33
15
version : 2
34
16
build-and-deploy :
35
17
jobs :
36
- - build :
37
- filters : # required since `deploy` has tag filters AND requires `build`
38
- tags :
39
- only : /^v.*$/
40
- - deploy :
41
- requires :
42
- - build
18
+ - release :
43
19
filters :
44
20
branches :
45
21
ignore : /.*/
Original file line number Diff line number Diff line change 1
1
semver
2
2
build
3
+ dist
3
4
buildAssets
4
5
glow.private.json
5
6
Original file line number Diff line number Diff line change 7
7
# you may remove this if you don't need go generate
8
8
- go generate ./...
9
9
builds :
10
- - env :
11
- - CGO_ENABLED=0
10
+ -
11
+ main : ./pkg/cli/main.go
12
+ env :
13
+ - CGO_ENABLED=0
12
14
archive :
13
15
replacements :
14
16
darwin : Darwin
You can’t perform that action at this time.
0 commit comments