File tree Expand file tree Collapse file tree 3 files changed +27
-10
lines changed Expand file tree Collapse file tree 3 files changed +27
-10
lines changed Original file line number Diff line number Diff line change 8
8
goreleaser :
9
9
runs-on : ubuntu-latest
10
10
if : startsWith(github.ref, 'refs/tags/')
11
+ timeout-minutes : 10
11
12
steps :
12
13
- name : Checkout
13
14
uses : actions/checkout@master
16
17
- name : Set up Go
17
18
uses : actions/setup-go@master
18
19
with :
19
- go-version : 1.15
20
+ go-version : 1.17
20
21
- name : Run GoReleaser
21
22
uses : goreleaser/goreleaser-action@v2
22
23
with :
Original file line number Diff line number Diff line change 42
42
solve
43
43
44
44
.leetcode.json
45
+
46
+ dist /
Original file line number Diff line number Diff line change
1
+ # This is an example .goreleaser.yml file with some sensible defaults.
2
+ # Make sure to check the documentation at https://goreleaser.com
3
+ before :
4
+ hooks :
5
+ # You may remove this if you don't use go modules.
6
+ - go mod tidy
7
+ # you may remove this if you don't need go generate
8
+ - go generate ./...
1
9
builds :
2
- - main : cmd/main.go
3
- binary : leetcode-tool
4
- ldflags : -s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{ .CommitDate }} -X main.builtBy=goreleaser
10
+ - env :
11
+ - CGO_ENABLED=0
5
12
goos :
13
+ - linux
6
14
- windows
7
15
- darwin
8
- - linux
9
- goarch :
10
- - amd64
16
+ archives :
17
+ - replacements :
18
+ darwin : Darwin
19
+ linux : Linux
20
+ windows : Windows
21
+ 386 : i386
22
+ amd64 : x86_64
23
+ checksum :
24
+ name_template : ' checksums.txt'
25
+ snapshot :
26
+ name_template : " {{ incpatch .Version }}-next"
11
27
changelog :
12
28
sort : asc
13
29
filters :
14
30
exclude :
15
31
- ' ^docs:'
16
- - ' ^refactor'
17
- - ' ^tweak'
18
- - ' ^test'
32
+ - ' ^test:'
19
33
brews :
20
34
- tap :
21
35
owner : zcong1993
You can’t perform that action at this time.
0 commit comments