File tree Expand file tree Collapse file tree 2 files changed +57
-0
lines changed Expand file tree Collapse file tree 2 files changed +57
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : release
2
+
3
+ on :
4
+ push :
5
+ tags : ["*"]
6
+
7
+ jobs :
8
+ goreleaser :
9
+ runs-on : ubuntu-latest
10
+ steps :
11
+ -
12
+ name : Checkout
13
+ uses : actions/checkout@v2
14
+ with :
15
+ fetch-depth : 0
16
+ -
17
+ name : Set up Go
18
+ uses : actions/setup-go@v2
19
+ with :
20
+ go-version : 1.16
21
+ -
22
+ name : Run GoReleaser
23
+ uses : goreleaser/goreleaser-action@v2
24
+ with :
25
+ version : latest
26
+ args : release --rm-dist
27
+ env :
28
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change
1
+ project_name : commitstat
2
+ release :
3
+ github :
4
+ owner : dropseed
5
+ name : commitstat
6
+ builds :
7
+ - goos :
8
+ - linux
9
+ - darwin
10
+ goarch :
11
+ - amd64
12
+ - " 386"
13
+ - arm64
14
+ goarm :
15
+ - " 6"
16
+ main : ./cmd/commitstat
17
+ ldflags : -s -w -X github.com/dropseed/commitstat/internal/version.version={{.Version}} -X github.com/dropseed/commitstat/internal/version.commit={{.Commit}} -X github.com/dropseed/commitstat/internal/version.date={{.Date}}
18
+ binary : commitstat
19
+ env :
20
+ - CGO_ENABLED=0
21
+ archives :
22
+ - format : tar.gz
23
+ name_template : ' {{ .Binary }}_{{.Version}}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{
24
+ .Arm }}{{ end }}'
25
+ files :
26
+ - LICENSE*
27
+ - README*
28
+ snapshot :
29
+ name_template : SNAPSHOT-{{ .Commit }}
You can’t perform that action at this time.
0 commit comments