Skip to content

Commit

Permalink
Go releaser updates
Browse files Browse the repository at this point in the history
Fixed goreleaser.yaml to include build tags
  • Loading branch information
ondrovic committed Aug 30, 2024
1 parent 87e8097 commit 5e140dd
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ project_name: mass-code-parser # rename

env:
- GO_MAIN_PATH=mass-code-parser.go
- VERSION_PATH=masscode-parser/cli/cmd.version

before:
hooks:
Expand All @@ -21,7 +22,9 @@ builds:
- windows
goarch:
- amd64
ldflags: -s -w
ldflags:
- -s -w
- -X '{{.Env.VERSION_PATH}}={{.Tag}}'

- id: linux
main: '{{ .Env.GO_MAIN_PATH }}'
Expand All @@ -31,7 +34,9 @@ builds:
- linux
goarch:
- amd64
ldflags: -s -w
ldflags:
- -s -w
- -X '{{.Env.VERSION_PATH}}={{.Tag}}'

- id: macos
main: '{{ .Env.GO_MAIN_PATH }}'
Expand All @@ -41,7 +46,9 @@ builds:
- darwin
goarch:
- amd64
ldflags: -s -w
ldflags:
- -s -w
- -X '{{.Env.VERSION_PATH}}={{.Tag}}'

archives:
- format: tar.gz
Expand Down

0 comments on commit 5e140dd

Please sign in to comment.