Skip to content

Commit

Permalink
fix: Update goreleaser config
Browse files Browse the repository at this point in the history
  • Loading branch information
MiniCodeMonkey committed Dec 13, 2024
1 parent 655b8f7 commit ac80f81
Showing 1 changed file with 26 additions and 7 deletions.
33 changes: 26 additions & 7 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
@@ -1,27 +1,46 @@
# yaml-language-server: $schema=https://goreleaser.com/static/schema.json
version: 2

project_name: geocodio

before:
hooks:
- go mod tidy

builds:
- env:
- binary: '{{ .ProjectName }}'
env:
- CGO_ENABLED=0
goos:
- linux
- windows
- darwin
ldflags:
- -s -w -X github.com/geocodio/geocodio-cli/release.version={{.Version}} -X github.com/geocodio/geocodio-cli/release.commit={{.Commit}} -X github.com/geocodio/geocodio-cli/release.date={{.Date}}

archives:
- replacements:
darwin: Darwin
linux: Linux
windows: Windows
386: i386
amd64: x86_64
- id: default
format: tar.gz
# use zip for windows archives
format_overrides:
- goos: windows
format: zip
name_template: >-
{{ .ProjectName }}_
{{- .Version }}_
{{- .Os }}_
{{- .Arch }}
builds_info:
group: root
owner: root

checksum:
name_template: 'checksums.txt'
algorithm: sha256

snapshot:
name_template: "{{ incpatch .Version }}-next"

changelog:
sort: asc
filters:
Expand Down

0 comments on commit ac80f81

Please sign in to comment.