Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update .goreleaser.yml #866

Merged
merged 2 commits into from
Jan 19, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 39 additions & 5 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,19 @@
# .goreleaser.yml
release:
github:
owner: johnkerl
name: miller

snapshot:
name_template: SNAPSHOT-{{ .Commit }}

#gomod:
# proxy: true

before:
hooks:
- go mod tidy

builds:
- env:
- CGO_ENABLED=0
Expand Down Expand Up @@ -52,10 +64,32 @@ builds:
#ldflags:
# - -s -w

archives:
- format: tar.gz
wrap_in_directory: true
format_overrides:
- goos: windows
format: zip
replacements:
darwin: macos
name_template: '{{ .ProjectName }}-{{ .Version }}-{{ .Os }}-{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}'
files:
- LICENSE
- README.md

nfpms:
-
id: miller-nfpms
package_name: miller
file_name_template: "{{ .ProjectName }}-{{ .Version }}-{{ .Os }}-{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}"
homepage: https://github.com/johnkerl/miller
maintainer: "John Kerl <johnkerl@users.noreply.github.com>"
description: Miller is like awk, sed, cut, join, and sort for data formats such as CSV, TSV, tabular JSON etc
license: BSD
formats:
- deb
- rpm

checksum:
algorithm: sha256

release:
github:
owner: johnkerl
name: miller
name_template: '{{ .ProjectName }}-{{ .Version }}-checksums.txt'