Skip to content
This repository has been archived by the owner on Apr 25, 2023. It is now read-only.

Commit

Permalink
fix goreleaser config
Browse files Browse the repository at this point in the history
  • Loading branch information
Matt Spurrier committed Dec 16, 2022
1 parent 76fa5ea commit 08b324f
Showing 1 changed file with 17 additions and 13 deletions.
30 changes: 17 additions & 13 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
@@ -1,15 +1,21 @@
before:
hooks:
- go mod tidy
# .goreleaser.yaml
builds:
env:
- CGO_ENABLED=0
goos:
- linux
- windows
- darwin
hooks:
post: bash ./upx.sh
-
env:
- CGO_ENABLED=0
goos:
- linux
- windows
- darwin
hooks:
pre:
- go mod tidy
post:
- bash ./upx.sh
ldflags:
- -s -w -X main.Version={{.Version}}
mod_timestamp: '{{ .CommitTimestamp }}'

archives:
- replacements:
darwin: Darwin
Expand All @@ -21,8 +27,6 @@ checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ incpatch .Version }}-next"
ldflags:
- -s -w -X main.Version={{.Version}}
changelog:
sort: asc
filters:
Expand Down

0 comments on commit 08b324f

Please sign in to comment.