File tree Expand file tree Collapse file tree 2 files changed +40
-7
lines changed Expand file tree Collapse file tree 2 files changed +40
-7
lines changed Original file line number Diff line number Diff line change
1
+ name : goreleaser
2
+
3
+ on :
4
+ push :
5
+ tags :
6
+ - " v*" # Will trigger only if tag is pushed matching pattern `v*` (Eg: `v0.1.0`)
7
+
8
+ permissions :
9
+ contents : write
10
+
11
+ jobs :
12
+ goreleaser :
13
+ runs-on : ubuntu-latest
14
+ steps :
15
+ - name : Checkout
16
+ uses : actions/checkout@v3
17
+ with :
18
+ fetch-depth : 0
19
+
20
+ - name : Set up Go
21
+ uses : actions/setup-go@v4
22
+ with :
23
+ go-version : " 1.21"
24
+
25
+ - name : Run GoReleaser
26
+ uses : goreleaser/goreleaser-action@v4
27
+ with :
28
+ version : latest
29
+ args : release --clean
30
+ env :
31
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change 1
- env :
2
- - CGO_ENABLED=1
3
-
4
1
before :
5
2
hooks :
6
- - make dist
7
-
3
+ - go mod tidy
4
+
8
5
builds :
9
- - binary : kaf-relay.bin
10
- main : .
6
+ - env :
7
+ - CGO_ENABLED=1
8
+ binary : kaf-relay
11
9
goos :
12
10
- windows
13
11
- linux
12
+ - freebsd
13
+ - openbsd
14
14
- netbsd
15
15
goarch :
16
16
- amd64
17
17
18
18
archives :
19
19
- format : tar.gz
20
+ rlcp : true
20
21
files :
22
+ - config.toml.sample
21
23
- README.md
22
24
- LICENSE
You can’t perform that action at this time.
0 commit comments