Skip to content

Commit

Permalink
tidy up release strategy
Browse files Browse the repository at this point in the history
  • Loading branch information
tomoconnor committed Sep 30, 2024
1 parent 1370bff commit 6bfa9f8
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 37 deletions.
69 changes: 32 additions & 37 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@ before:
hooks:
- go mod download
builds:
-
env:
- env:
- CGO_ENABLED=0
goos:
- linux
Expand All @@ -18,8 +17,7 @@ builds:
- arm
- arm64
ignore:
-
goos: darwin
- goos: darwin
goarch: 386
flags:
- "-a"
Expand All @@ -36,38 +34,35 @@ changelog:
- Merge pull request
- Merge branch
archives:
-
name_template: '{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}'
replacements:
darwin: Darwin
linux: Linux
windows: Windows
386: i386
amd64: x86_64
- 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 }}
format_overrides:
-
goos: windows
format: zip
- goos: windows
format: zip
wrap_in_directory: true
brews:
-
name: testman
# github:
# owner: moul
# name: homebrew-moul
commit_author:
name: moul-bot
email: "bot@moul.io"
homepage: https://github.com/moul/testman
description: "testman"
nfpms:
-
file_name_template: '{{ .ProjectName }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}'
homepage: https://github.com/moul/testman
description: "testman"
maintainer: "Manfred Touron <https://manfred.life>"
license: "Apache-2.0 OR MIT"
vendor: moul
formats:
- deb
- rpm
# brews:
# - name: testman
# tap:
# owner: moul
# name: homebrew-moul
# commit_author:
# name: moul-bot
# email: "bot@moul.io"
# homepage: https://github.com/moul/testman
# description: "testman"
# nfpms:
# -
# file_name_template: '{{ .ProjectName }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}'
# homepage: https://github.com/moul/testman
# description: "testman"
# maintainer: "Manfred Touron <https://manfred.life>"
# license: "Apache-2.0 OR MIT"
# vendor: moul
# formats:
# - deb
# - rpm
1 change: 1 addition & 0 deletions AUTHORS

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 6bfa9f8

Please sign in to comment.