File tree 3 files changed +74
-0
lines changed
3 files changed +74
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Release Go project
2
+
3
+ on :
4
+ push :
5
+ tags :
6
+ - " v*"
7
+
8
+ jobs :
9
+ release :
10
+ runs-on : ubuntu-latest
11
+ steps :
12
+ - name : Checkout
13
+ uses : actions/checkout@v4
14
+ with :
15
+ fetch-depth : 0
16
+
17
+ - name : Setup Golang
18
+ uses : actions/setup-go@v4
19
+ with :
20
+ go-version : " 1.22"
21
+
22
+ - name : Run GoReleaser
23
+ uses : goreleaser/goreleaser-action@v3
24
+ with :
25
+ distribution : goreleaser
26
+ version : v1.13.1
27
+ args : release --rm-dist
28
+ env :
29
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change 19
19
20
20
# Go workspace file
21
21
go.work
22
+
23
+ dist /
Original file line number Diff line number Diff line change
1
+ version : 1
2
+
3
+ builds :
4
+ - env :
5
+ - CGO_ENABLED=0
6
+ dir : ./gitpod-network-check
7
+ goos :
8
+ - linux
9
+ - windows
10
+ - darwin
11
+ goarch :
12
+ - amd64
13
+ - arm64
14
+ ignore :
15
+ - goos : windows
16
+ goarch : arm64
17
+ binary : gitpod-network-check
18
+
19
+ archives :
20
+ - format : tar.gz
21
+ # this name template makes the OS and Arch compatible with the results of `uname`.
22
+ name_template : >-
23
+ {{ .ProjectName }}_
24
+ {{- title .Os }}_
25
+ {{- if eq .Arch "amd64" }}x86_64
26
+ {{- else if eq .Arch "386" }}i386
27
+ {{- else }}{{ .Arch }}{{ end }}
28
+ {{- if .Arm }}v{{ .Arm }}{{ end }}
29
+
30
+ format_overrides :
31
+ - goos : windows
32
+ format : zip
33
+ strip_binary_directory : true
34
+
35
+ checksum :
36
+ name_template : ' checksums.txt'
37
+
38
+ changelog :
39
+ sort : asc
40
+ filters :
41
+ exclude :
42
+ - " ^docs:"
43
+ - " ^test:"
You can’t perform that action at this time.
0 commit comments