File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : release
2+ on :
3+ push :
4+ tags :
5+ - " v*.*.*"
6+ jobs :
7+ goreleaser :
8+ runs-on : macos-14
9+ steps :
10+ - uses : actions/checkout@v4
11+ - uses : actions/setup-go@v5
12+ with :
13+ go-version : " 1.24.2"
14+ - name : GoReleaser
15+ uses : goreleaser/goreleaser-action@v6
16+ with :
17+ distribution : goreleaser
18+ version : latest
19+ args : release --clean
20+ env :
21+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change 1+ project_name : cli
2+
3+ before :
4+ hooks :
5+ - go mod tidy
6+
7+ builds :
8+ - id : cli
9+ main : ./main
10+ binary : major
11+ env : [CGO_ENABLED=0]
12+ flags : [-trimpath]
13+ ldflags :
14+ - -s -w
15+ - -X github.com/major-technology/cli/cmd.version={{.Version}}
16+ # If you want prod builds to default to prod config:
17+ - -X github.com/major-technology/cli/cmd.defaultConfig=configs/prod.json
18+ goos : [darwin, linux]
19+ goarch : [amd64, arm64]
20+
21+ archives :
22+ - format : tar.gz
23+ files :
24+ - LICENSE
25+ - README.md
26+
27+ brews :
28+ - name : major
29+ tap :
30+ owner : major-technology
31+ name : homebrew-tap
32+ commit_author :
33+ name : goreleaser
34+ email : goreleaser@users.noreply.github.com
35+ description : " Major CLI"
36+ homepage : " https://github.com/major-technology/cli"
37+ license : " MIT"
38+ test : |
39+ system "#{bin}/major", "--version"
40+ install : |
41+ bin.install "major"
42+
43+ release :
44+ github :
45+ owner : major-technology
46+ name : cli
47+ draft : false
48+ prerelease : false
49+
50+ changelog :
51+ sort : asc
You can’t perform that action at this time.
0 commit comments