summaryrefslogtreecommitdiff
path: root/.goreleaser.yaml
diff options
context:
space:
mode:
authorBenjamin Chausse <benjamin@chausse.xyz>2025-03-26 17:28:58 -0400
committerGitHub <noreply@github.com>2025-03-26 17:28:58 -0400
commitd2fdcbc0d4f8b4c184ba2b1c3c4b00da3918521f (patch)
tree6f4ba628fffb5e6d84f2eaa756345d3307abab77 /.goreleaser.yaml
parentcd9338e0d6cf582f9ea8028661ac3729e408f3bf (diff)
Stylish `--help` + generate manpages (#27)v1.3.7
* man page generation * generate VHS Gifs manually * goreleaser packages manpage
Diffstat (limited to '.goreleaser.yaml')
-rw-r--r--.goreleaser.yaml24
1 files changed, 20 insertions, 4 deletions
diff --git a/.goreleaser.yaml b/.goreleaser.yaml
index 86fda49..3e69947 100644
--- a/.goreleaser.yaml
+++ b/.goreleaser.yaml
@@ -8,14 +8,30 @@
# vim: set ts=2 sw=2 tw=0 fo=cnqoj
version: 2
before:
- hooks: [go mod tidy]
+ hooks: [go mod tidy, go generate ./..., 'echo building {{.Version}}']
+upx:
+ # Whether to enable it or not.
+ - enabled: true
+ # Filter by GOOS.
+ goos: [linux, windows, darwin]
+ # Filter by GOARCH.
+ goarch: [arm, amd64, i386, arm64, aarch64]
+ # Compress argument.
+ # Valid options are from '1' (faster) to '9' (better), and 'best'.
+ compress: best
+ # Whether to try LZMA (slower).
+ lzma: false
builds:
- main:
env: [CGO_ENABLED=0]
- ldflags: -s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{.Date}}
+ ldflags: -s -w -X main.version={{.Version}}
goos: [linux, windows, darwin]
archives:
- - format: tar.gz
+ - formats: tar.gz
+ files:
+ - LICENSE
+ - src: ./internal/documentation/*.1
+ strip_parent: true
# this name template makes the OS and Arch compatible with the results of `uname`.
name_template: >-
{{ .ProjectName }}_
@@ -27,7 +43,7 @@ archives:
# use zip for windows archives
format_overrides:
- goos: windows
- format: zip
+ formats: zip
changelog:
sort: asc
filters: