File tree 4 files changed +108
-0
lines changed
4 files changed +108
-0
lines changed Original file line number Diff line number Diff line change
1
+ changelog :
2
+ exclude :
3
+ authors :
4
+ - dependabot
5
+ categories :
6
+ - title : 🎉 New Features
7
+ labels :
8
+ - " Type: Enhancement"
9
+ - title : 🐞 Bug Fixes
10
+ labels :
11
+ - " Type: Bug"
12
+ - title : 🔨 Maintenance
13
+ labels :
14
+ - " Type: Maintenance"
15
+ - title : Other Changes
16
+ labels :
17
+ - " *"
Original file line number Diff line number Diff line change
1
+ name : 🎉 Release Binary
2
+
3
+ on :
4
+ push :
5
+ tags :
6
+ - ' *'
7
+ workflow_dispatch :
8
+
9
+ jobs :
10
+ release :
11
+ runs-on : ubuntu-latest-16-cores
12
+ steps :
13
+ - name : " Check out code"
14
+ uses : actions/checkout@v3
15
+ with :
16
+ fetch-depth : 0
17
+
18
+ - name : " Set up Go"
19
+ uses : actions/setup-go@v4
20
+ with :
21
+ go-version : 1.21.x
22
+
23
+ - name : " Create release on GitHub"
24
+ uses : goreleaser/goreleaser-action@v4
25
+ with :
26
+ args : " release --clean"
27
+ version : latest
28
+ workdir : .
29
+ env :
30
+ GITHUB_TOKEN : " ${{ secrets.GITHUB_TOKEN }}"
Original file line number Diff line number Diff line change
1
+ name : 🔨 Release Test
2
+
3
+ on :
4
+ pull_request :
5
+ paths :
6
+ - ' **.go'
7
+ - ' **.mod'
8
+ workflow_dispatch :
9
+
10
+ jobs :
11
+ release-test :
12
+ runs-on : ubuntu-latest-16-cores
13
+ steps :
14
+ - name : " Check out code"
15
+ uses : actions/checkout@v3
16
+ with :
17
+ fetch-depth : 0
18
+
19
+ - name : Set up Go
20
+ uses : actions/setup-go@v4
21
+ with :
22
+ go-version : 1.21.x
23
+
24
+ - name : release test
25
+ uses : goreleaser/goreleaser-action@v4
26
+ with :
27
+ args : " release --clean --snapshot"
28
+ version : latest
Original file line number Diff line number Diff line change
1
+ before :
2
+ hooks :
3
+ - go mod tidy
4
+
5
+ builds :
6
+ - env :
7
+ - CGO_ENABLED=0
8
+ goos :
9
+ - linux
10
+ - windows
11
+ - darwin
12
+ goarch :
13
+ - amd64
14
+ - 386
15
+ - arm
16
+ - arm64
17
+ ignore :
18
+ - goos : darwin
19
+ goarch : ' 386'
20
+ - goos : windows
21
+ goarch : ' arm'
22
+ - goos : windows
23
+ goarch : ' arm64'
24
+ binary : ' {{ .ProjectName }}'
25
+ main : ./cmd/cariddi/
26
+
27
+ archives :
28
+ - format : zip
29
+ name_template : ' {{ .ProjectName }}_{{ .Version }}_{{ if eq .Os "darwin" }}macOS{{ else }}{{ .Os }}{{ end }}_{{ .Arch }}'
30
+
31
+ checksum :
32
+ algorithm : sha256
33
+
You can’t perform that action at this time.
0 commit comments