11# GoReleaser configuration for hostodo-cli
2- # See: https://goreleaser.com
3-
42version : 2
53
64before :
75 hooks :
8- # Ensure dependencies are up to date
96 - go mod tidy
107 - go mod download
118
@@ -21,7 +18,6 @@ builds:
2118 goarch :
2219 - amd64
2320 - arm64
24- # Ignore certain combinations
2521 ignore :
2622 - goos : windows
2723 goarch : arm64
@@ -42,18 +38,15 @@ archives:
4238 {{- if eq .Arch "amd64" }}x86_64
4339 {{- else if eq .Arch "386" }}i386
4440 {{- else }}{{ .Arch }}{{ end }}
45- format_overrides :
46- - goos : windows
47- format : zip
4841 files :
4942 - README.md
5043 - LICENSE*
51-
44+
5245checksum :
5346 name_template : ' checksums.txt'
5447
5548snapshot :
56- name_template : " {{ incpatch .Version }}-next"
49+ version_template : " {{ incpatch .Version }}-next"
5750
5851changelog :
5952 sort : asc
@@ -78,75 +71,35 @@ changelog:
7871 - title : ' Other Changes'
7972 order : 999
8073
74+ # Homebrew formula (brews still valid for CLI tools despite deprecation warning)
8175brews :
82- - name : hostodo
83- repository :
76+ - repository :
8477 owner : hostodo
8578 name : homebrew-tap
86- # If you want to use a personal tap, change this to:
87- # owner: yourusername
88- # name: homebrew-hostodo
89-
90- # Directory where the formula will be placed in the tap repository
9179 directory : Formula
92-
93- # Git author for the commit
94- commit_author :
95- name : goreleaserbot
96- email : bot@goreleaser.com
97-
98- # Commit message template
99- commit_msg_template : " Brew formula update for {{ .ProjectName }} version {{ .Tag }}"
100-
101- # Homepage of your project
102- homepage : " https://github.com/hostodo/hostodo-cli"
103-
104- # Description
80+ homepage : " https://github.com/hostodo/cli"
10581 description : " Official CLI for managing Hostodo VPS instances"
106-
107- # License
10882 license : " MIT"
109-
110- # If your binary needs any dependencies
111- # dependencies:
112- # - name: git
113-
114- # Install configuration
11583 install : |
11684 bin.install "hostodo"
117-
118- # Test configuration
11985 test : |
12086 system "#{bin}/hostodo", "--version"
12187
122- # Custom download strategy (optional)
123- # custom_block: |
124- # head "https://github.com/hostodo/hostodo-cli.git"
125-
12688release :
12789 github :
12890 owner : hostodo
129- name : hostodo-cli
130-
131- # Draft release (you can review before publishing)
91+ name : cli
13292 draft : false
133-
134- # Mark as pre-release
13593 prerelease : auto
94+ name_template : " v{{.Version}}"
13695
137- # Release name
138- name_template : " {{.ProjectName}} v{{.Version}}"
139-
140- # Disable release notes
141- # disable: true
142-
143- # Optional: Universal binaries for macOS
96+ # Universal binaries for macOS (combines Intel + ARM)
14497universal_binaries :
14598 - id : hostodo
14699 replace : true
147100 name_template : ' {{ .ProjectName }}'
148101
149- # Optional: Add Linux packages
102+ # Linux packages
150103nfpms :
151104 - id : hostodo
152105 package_name : hostodo
0 commit comments