Skip to content

Commit

Permalink
Format goreleaser.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikSchierboom committed Feb 15, 2024
1 parent 0a8f77b commit d461855
Showing 1 changed file with 22 additions and 14 deletions.
36 changes: 22 additions & 14 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ env:
builds:
- id: release-build
main: ./exercism/main.go
mod_timestamp: '{{ .CommitTimestamp }}'
mod_timestamp: "{{ .CommitTimestamp }}"
flags:
- -trimpath # removes file system paths from compiled executable
ldflags:
- '-s -w' # strip debug symbols and DWARF debugging info
- "-s -w" # strip debug symbols and DWARF debugging info
goos:
- darwin
- linux
Expand All @@ -33,11 +33,11 @@ builds:
goarch: arm
- id: installer-build
main: ./exercism/main.go
mod_timestamp: '{{ .CommitTimestamp }}'
mod_timestamp: "{{ .CommitTimestamp }}"
flags:
- -trimpath # removes file system paths from compiled executable
ldflags:
- '-s -w' # strip debug symbols and DWARF debugging info
- "-s -w" # strip debug symbols and DWARF debugging info
goos:
- windows
goarch:
Expand All @@ -48,8 +48,8 @@ changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
- "^docs:"
- "^test:"

archives:
- id: release-archives
Expand All @@ -64,8 +64,8 @@ archives:
{{- else }}{{- .Arch }}{{ end }}
{{- if .Arm }}v{{- .Arm }}{{ end }}
format_overrides:
- goos: windows
format: zip
- goos: windows
format: zip
files:
- shell/**
- LICENSE
Expand All @@ -82,22 +82,31 @@ archives:
{{- else }}{{- .Arch }}{{ end }}
{{- if .Arm }}v{{- .Arm }}{{ end }}
format_overrides:
- goos: windows
format: zip
- goos: windows
format: zip
files:
- shell/**
- LICENSE
- README.md

checksum:
name_template: '{{ .ProjectName }}_checksums.txt'
name_template: "{{ .ProjectName }}_checksums.txt"
ids:
- release-archives
- installer-archives

signs:
- artifacts: checksum
args: ["--batch", "-u", "{{ .Env.GPG_FINGERPRINT }}", "--output", "${signature}", "--detach-sign", "${artifact}"]
args:
[
"--batch",
"-u",
"{{ .Env.GPG_FINGERPRINT }}",
"--output",
"${signature}",
"--detach-sign",
"${artifact}",
]

release:
# Repo in which the release will be created.
Expand All @@ -121,8 +130,7 @@ release:
name_template: "{{.ProjectName}}-v{{.Version}} {{.Env.USER}}"

brews:
-
name: exercism
- name: exercism
repository:
owner: exercism
name: homebrew-exercism
Expand Down

0 comments on commit d461855

Please sign in to comment.