File tree Expand file tree Collapse file tree 2 files changed +51
-0
lines changed
Expand file tree Collapse file tree 2 files changed +51
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Build and Release
2+
3+ on :
4+ push :
5+ tags :
6+ - ' v*.*.*'
7+
8+ permissions :
9+ contents : write
10+
11+ jobs :
12+ release :
13+ runs-on : ubuntu-latest
14+
15+ steps :
16+ - name : Checkout
17+ uses : actions/checkout@v4
18+
19+ - name : Set up Go
20+ uses : actions/setup-go@v5
21+ with :
22+ go-version : ' 1.24.1'
23+
24+ - name : Run GoReleaser
25+ uses : goreleaser/goreleaser-action@v6
26+ with :
27+ version : latest
28+ args : release --clean
29+ env :
30+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change 1+ # goreleaser.yml
2+ project_name : speculator
3+ builds :
4+ - id : speculator
5+ main : ./main.go
6+ binary : speculator
7+ env :
8+ - CGO_ENABLED=0
9+ goos :
10+ - linux
11+ - darwin
12+ goarch :
13+ - amd64
14+ - arm64
15+ ldflags :
16+ - " -s -w"
17+
18+ archives :
19+ - id : tarballs
20+ format : tar.gz
21+ name_template : " speculator-{{ .Os }}-{{ .Arch }}"
You can’t perform that action at this time.
0 commit comments