File tree Expand file tree Collapse file tree 3 files changed +54
-9
lines changed
Expand file tree Collapse file tree 3 files changed +54
-9
lines changed Original file line number Diff line number Diff line change 2121 id : go
2222
2323 - name : Run GoReleaser
24- uses : goreleaser/goreleaser-action@master
24+ uses : goreleaser/goreleaser-action@v6
2525 with :
26- version : latest
27- args : release --rm-dist
26+ version : ' ~> v2 '
27+ args : release --clean
2828 env :
2929 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
30-
31- # - name: Upload assets
32- # uses: actions/upload-artifact@v2
33- # with:
34- # name: kafta
35- # path: dist/*
Original file line number Diff line number Diff line change 1+ version : 2
2+
3+ before :
4+ hooks :
5+ - go mod tidy
6+ - go generate ./...
7+
8+ builds :
9+ - env :
10+ - CGO_ENABLED=0
11+ goos :
12+ - linux
13+ - windows
14+ - darwin
15+ goarch :
16+ - amd64
17+ - arm64
18+ - arm
19+ - ppc64le
20+ goarm :
21+ - ' 7'
22+ flags :
23+ - -trimpath
24+ ldflags :
25+ - -s -w -X github.com/electric-saw/kafta/internal/version.version={{.Tag}}
26+ - -X github.com/electric-saw/kafta/internal/version.metadata={{.Branch}}
27+ - -X github.com/electric-saw/kafta/internal/version.gitCommit={{.ShortCommit}}
28+ main : ./cmd/kafta
29+
30+ archives :
31+ - format : tar.gz
32+ name_template : >-
33+ {{ .ProjectName }}_
34+ {{- title .Os }}_
35+ {{- if eq .Arch "amd64" }}x86_64
36+ {{- else if eq .Arch "386" }}i386
37+ {{- else }}{{ .Arch }}{{ end }}
38+ {{- if .Arm }}v{{ .Arm }}{{ end }}
39+ format_overrides :
40+ - goos : windows
41+ format : zip
42+ checksum :
43+ name_template : ' checksums.txt'
44+ snapshot :
45+ name_template : " {{ incpatch .Version }}-next"
46+ changelog :
47+ sort : asc
48+ filters :
49+ exclude :
50+ - ' ^docs:'
51+ - ' ^test:'
File renamed without changes.
You can’t perform that action at this time.
0 commit comments