File tree Expand file tree Collapse file tree 2 files changed +46
-10
lines changed
Expand file tree Collapse file tree 2 files changed +46
-10
lines changed Original file line number Diff line number Diff line change @@ -2,17 +2,26 @@ name: release
22on :
33 release :
44 types :
5- - published
6-
5+ - created
76jobs :
8- release :
7+ goreleaser :
98 runs-on : ubuntu-latest
109 steps :
11- - uses : actions/checkout@v3
12- - name : Build and copy binary
13- run : make build-docker
14- - name : Upload binary to release
15- uses : softprops/action-gh-release@v1
16- if : ${{startsWith(github.ref, 'refs/tags/') }}
10+ -
11+ name : Checkout
12+ uses : actions/checkout@v3
13+ with :
14+ fetch-depth : 0
15+ -
16+ name : Set up Go
17+ uses : actions/setup-go@v5
18+ with :
19+ go-version : 1.23.1
20+ -
21+ name : Run GoReleaser
22+ uses : goreleaser/goreleaser-action@v6
1723 with :
18- files : ./bin/efes
24+ version : ' ~> v2'
25+ args : release --clean
26+ env :
27+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change 1+ version : 2
2+
3+ before :
4+ hooks :
5+ - go mod download
6+
7+ builds :
8+ - env :
9+ - CGO_ENABLED=0
10+ main : main.go
11+ goos :
12+ - linux
13+ goarch :
14+ - amd64
15+ archives :
16+ - format : tar.gz
17+ name_template : " {{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
18+ checksum :
19+ name_template : ' checksums.txt'
20+ snapshot :
21+ version_template : " {{ .Tag }}-next"
22+ changelog :
23+ sort : asc
24+ filters :
25+ exclude :
26+ - ' ^docs:'
27+ - ' ^test:'
You can’t perform that action at this time.
0 commit comments