File tree 2 files changed +49
-0
lines changed
2 files changed +49
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Release
2
+ on :
3
+ push :
4
+ tags :
5
+ - ' v*'
6
+ jobs :
7
+ goreleaser :
8
+ runs-on : ubuntu-latest
9
+ steps :
10
+ - uses : actions/checkout@v4
11
+ - uses : actions/setup-go@v5
12
+ with :
13
+ go-version-file : ' go.mod'
14
+ - uses : goreleaser/goreleaser-action@v6
15
+ with :
16
+ args : release --clean
17
+ env :
18
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change
1
+ # yaml-language-server: $schema=https://goreleaser.com/static/schema.json
2
+ version : 2
3
+
4
+ project_name : gh-cherry-pick
5
+
6
+ builds :
7
+ - binary : gh-cherry-pick
8
+ main : ./cmd/cherry-pick/
9
+ env :
10
+ - CGO_ENABLED=0
11
+ goos :
12
+ - darwin
13
+ - windows
14
+ - linux
15
+ goarch :
16
+ - amd64
17
+ - arm64
18
+
19
+ archives :
20
+ - format : tar.gz
21
+ wrap_in_directory : true
22
+ name_template : " {{ .ProjectName }}-{{ .Version }}-{{ .Os }}-{{ .Arch }}{{ end }}"
23
+ files :
24
+ - LICENSE
25
+ - README.md
26
+
27
+ snapshot :
28
+ name_template : " SNAPSHOT-{{ .Commit }}"
29
+
30
+ changelog :
31
+ use : github-native
You can’t perform that action at this time.
0 commit comments