File tree 2 files changed +46
-0
lines changed
2 files changed +46
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : CI
2
+ on :
3
+ push :
4
+ branches : [main]
5
+ pull_request :
6
+ branches : [main]
7
+ jobs :
8
+ build :
9
+ runs-on : ubuntu-latest
10
+ steps :
11
+ - uses : actions/checkout@v4
12
+ - name : Setup Go
13
+ uses : actions/setup-go@v5
14
+ with :
15
+ go-version : ' 1.23.x'
16
+ - name : Install dependencies
17
+ run : go get .
18
+ - name : Build
19
+ run : go build -v ./...
Original file line number Diff line number Diff line change
1
+ name : goreleaser
2
+ on :
3
+ push :
4
+ tags :
5
+ - ' *'
6
+ permissions :
7
+ contents : write
8
+ jobs :
9
+ goreleaser :
10
+ runs-on : ubuntu-latest
11
+ steps :
12
+ - name : Checkout
13
+ uses : actions/checkout@v4
14
+ with :
15
+ fetch-depth : 0
16
+ - name : Set up Go
17
+ uses : actions/setup-go@v5
18
+ with :
19
+ go-version : ' 1.23.x'
20
+ - name : Run GoReleaser
21
+ uses : goreleaser/goreleaser-action@v6
22
+ with :
23
+ distribution : goreleaser
24
+ version : ' ~> v2'
25
+ args : release --clean
26
+ env :
27
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments