This repository was archived by the owner on Sep 2, 2022. It is now read-only.
File tree 3 files changed +89
-0
lines changed
3 files changed +89
-0
lines changed Original file line number Diff line number Diff line change
1
+ kind : pipeline
2
+ name : build
3
+
4
+ platform :
5
+ os : linux
6
+ arch : amd64
7
+
8
+ steps :
9
+ - name : test
10
+ image : golang:1.15
11
+ volumes :
12
+ - name : deps
13
+ path : /go
14
+ commands :
15
+ - go test -race -v ./... -cover
16
+ when :
17
+ event :
18
+ exclude :
19
+ - tag
20
+
21
+ - name : version
22
+ image : node:14.8
23
+ commands :
24
+ - yarn global add semantic-release@17.1
25
+ - semantic-release
26
+
27
+ environment :
28
+ GITHUB_TOKEN :
29
+ from_secret : github_token
30
+ when :
31
+ event :
32
+ exclude :
33
+ - tag
34
+
35
+ - name : fetch
36
+ image : alpine/git
37
+ commands :
38
+ - git fetch --tags
39
+ when :
40
+ event : tag
41
+
42
+ - name : release
43
+ image : golang:1.15
44
+ environment :
45
+ GITHUB_TOKEN :
46
+ from_secret : github_token
47
+ volumes :
48
+ - name : deps
49
+ path : /go
50
+ commands :
51
+ - curl -sL https://github.com/goreleaser/goreleaser/releases/download/v0.142.0/goreleaser_Linux_x86_64.tar.gz | tar xzf - -C /tmp
52
+ - /tmp/goreleaser -f "$PWD/.goreleaser.yml"
53
+ when :
54
+ event : tag
55
+
56
+ volumes :
57
+ - name : deps
58
+ temp : {}
Original file line number Diff line number Diff line change
1
+ before :
2
+ hooks :
3
+ - go mod download
4
+ builds :
5
+ - env :
6
+ - CGO_ENABLED=0
7
+ ldflags :
8
+ - -s -w
9
+ goos :
10
+ - linux
11
+ - windows
12
+ - darwin
13
+ goarch :
14
+ - amd64
15
+ archives :
16
+ - format : binary
17
+ checksum :
18
+ name_template : " checksums.txt"
Original file line number Diff line number Diff line change
1
+ {
2
+ "plugins" : [
3
+ " @semantic-release/commit-analyzer" ,
4
+ " @semantic-release/release-notes-generator" ,
5
+ [
6
+ " @semantic-release/github" ,
7
+ {
8
+ "successComment" : false ,
9
+ "failComment" : false
10
+ }
11
+ ]
12
+ ]
13
+ }
You can’t perform that action at this time.
0 commit comments