-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.goreleaser.yml
More file actions
297 lines (246 loc) · 6.63 KB
/
Copy path.goreleaser.yml
File metadata and controls
297 lines (246 loc) · 6.63 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
# S3ry GoReleaser Configuration - Optimized for v2.0.0
# High-performance multi-platform release automation
version: 2
# Project metadata
project_name: s3ry
# Environment variables
env:
- GO111MODULE=on
- CGO_ENABLED=0
# Git configuration
git:
tag_sort: -version:refname
# Before hooks (disabled for release)
# before:
# hooks:
# - go mod tidy
# - go mod verify
# - ./build/scripts/integration-check.sh
# - ./build/scripts/performance-monitor.sh
# Build configuration
builds:
- id: s3ry
main: ./cmd/s3ry
binary: s3ry
# Build flags
flags:
- -trimpath
# Linker flags for optimization
ldflags:
- -s -w
- -X main.version={{.Version}}
- -X main.commit={{.Commit}}
- -X main.date={{.Date}}
- -X main.builtBy=goreleaser
# Environment variables
env:
- CGO_ENABLED=0
# Target platforms
goos:
- linux
- darwin
- windows
- freebsd
goarch:
- amd64
- arm64
- arm
goarm:
- "6"
- "7"
# Ignore combinations
ignore:
- goos: windows
goarch: arm64
- goos: windows
goarch: arm
- goos: freebsd
goarch: arm64
- goos: freebsd
goarch: arm
# Universal binaries for macOS
universal_binaries:
- id: s3ry-universal
name_template: s3ry
replace: true
# Archives configuration
archives:
- id: default
format: tar.gz
name_template: >-
{{ .ProjectName }}_
{{- title .Os }}_
{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "386" }}i386
{{- else }}{{ .Arch }}{{ end }}
{{- if .Arm }}v{{ .Arm }}{{ end }}
# Archive contents
files:
- README.md
- LICENSE
- RELEASE_NOTES.md
# Format overrides
format_overrides:
- goos: windows
format: zip
# Checksums
checksum:
name_template: 'checksums.txt'
algorithm: sha256
# Snapshots (for non-tag builds)
snapshot:
version_template: "{{ incpatch .Version }}-next"
# Changelog configuration
changelog:
sort: asc
use: github
filters:
exclude:
- '^docs:'
- '^test:'
- '^ci:'
- '^build:'
- '^style:'
- '^refactor:'
- Merge pull request
- Merge branch
groups:
- title: Features
regexp: '^.*?feat(\([[:word:]]+\))??!?:.+$'
order: 0
- title: 'Bug fixes'
regexp: '^.*?fix(\([[:word:]]+\))??!?:.+$'
order: 1
- title: 'Performance improvements'
regexp: '^.*?perf(\([[:word:]]+\))??!?:.+$'
order: 2
- title: Others
order: 999
# GitHub release
release:
github:
owner: seike460
name: s3ry
# Release notes
header: |
## 🚀 S3ry {{ .Tag }}
**Modern High-Performance S3 CLI Tool**
### ✨ What's New in This Release
footer: |
### 📦 Installation
#### Binary Download
```bash
# Linux AMD64
curl -LO https://github.com/seike460/s3ry/releases/download/{{ .Tag }}/s3ry_Linux_x86_64.tar.gz
tar -xzf s3ry_Linux_x86_64.tar.gz
sudo mv s3ry /usr/local/bin/
# macOS (Universal Binary)
curl -LO https://github.com/seike460/s3ry/releases/download/{{ .Tag }}/s3ry_Darwin_all.tar.gz
tar -xzf s3ry_Darwin_all.tar.gz
sudo mv s3ry /usr/local/bin/
# Windows AMD64
curl -LO https://github.com/seike460/s3ry/releases/download/{{ .Tag }}/s3ry_Windows_x86_64.zip
# Extract and add to PATH
```
#### Docker
```bash
docker pull ghcr.io/seike460/s3ry:{{ .Tag }}
docker run --rm -it ghcr.io/seike460/s3ry:{{ .Tag }}
```
### 🎯 Key Features
- **10x Performance Improvement** - Lightning-fast S3 operations
- **Modern TUI Interface** - Beautiful terminal experience
- **Multi-platform Support** - Linux, macOS, Windows, FreeBSD
- **Multi-architecture** - AMD64, ARM64, ARM support
- **100% Backward Compatible** - Drop-in replacement for v1.x
### 📊 Performance Benchmarks
| Operation | v1.x | v2.x | Improvement |
|-----------|------|------|-------------|
| List 1000 objects | 1.05s | 104.8ms | **10.01x faster** |
| Download speed | 94.41 MB/s | 471.73 MB/s | **5.0x faster** |
| Memory usage | Baseline | 50% reduced | **2x efficient** |
---
**Full Changelog**: https://github.com/seike460/s3ry/compare/{{ .PreviousTag }}...{{ .Tag }}
# Release settings
draft: false
prerelease: auto
mode: replace
# Extra files (disabled for clean release)
# extra_files:
# - glob: ./build-metrics.json
# - glob: ./performance.log
# Docker images (disabled for release)
# Temporarily disabled for this release due to Docker daemon requirements
# Homebrew tap
brews:
- name: s3ry
repository:
owner: seike460
name: homebrew-tap
branch: main
token: "{{ .Env.HOMEBREW_TAP_GITHUB_TOKEN }}"
# Metadata
description: "Modern High-Performance S3 CLI Tool with 10x performance improvement"
homepage: "https://github.com/seike460/s3ry"
license: "MIT"
# Dependencies
dependencies:
- name: go
type: optional
# Installation
install: |
bin.install "s3ry"
# Generate shell completions
generate_completions_from_executable(bin/"s3ry", "completion")
# Test
test: |
system "#{bin}/s3ry", "version"
# Scoop bucket for Windows
scoops:
- name: s3ry
repository:
owner: seike460
name: scoop-bucket
branch: main
token: "{{ .Env.SCOOP_BUCKET_GITHUB_TOKEN }}"
description: "Modern High-Performance S3 CLI Tool"
homepage: "https://github.com/seike460/s3ry"
license: "MIT"
# AUR package for Arch Linux
nfpms:
- id: packages
package_name: s3ry
file_name_template: "{{ .ConventionalFileName }}"
# Metadata
vendor: seike460
homepage: "https://github.com/seike460/s3ry"
maintainer: "seike460 <seike460@gmail.com>"
description: "Modern High-Performance S3 CLI Tool with 10x performance improvement"
license: "MIT"
# Package formats
formats:
- deb
- rpm
- apk
- archlinux
# Dependencies
dependencies:
- ca-certificates
# Files
contents:
- src: ./README.md
dst: /usr/share/doc/s3ry/README.md
- src: ./LICENSE
dst: /usr/share/doc/s3ry/LICENSE
# Publishers (disabled for this release)
# publishers:
# - name: fury.io
# ids:
# - packages
# dir: "{{ dir .ArtifactPath }}"
# cmd: |
# curl -F package=@{{ .ArtifactName }} https://{{ .Env.FURY_TOKEN }}@push.fury.io/seike460/
# Announce
announce:
# Skip announce on pre-releases
skip: "{{gt .Prerelease 0}}"