mirror of
https://github.com/wader/fq.git
synced 2024-12-25 22:34:14 +03:00
6e17de36ff
Also some cleanup https://goreleaser.com/deprecations/#archivesreplacements
69 lines
1.3 KiB
YAML
69 lines
1.3 KiB
YAML
# to test
|
|
# docker run -ti -v "$PWD:$PWD" -w "$PWD" goreleaser/goreleaser:latest release --snapshot --rm-dist
|
|
project_name: fq
|
|
|
|
before:
|
|
hooks:
|
|
- go mod download
|
|
|
|
release:
|
|
draft: true
|
|
|
|
builds:
|
|
- env:
|
|
- CGO_ENABLED=0
|
|
goarch:
|
|
- amd64
|
|
- arm64
|
|
goos:
|
|
- linux
|
|
- windows
|
|
- darwin
|
|
flags:
|
|
- -trimpath
|
|
ldflags:
|
|
# omit symbol table and debug information
|
|
- -s -w
|
|
- -X main.commit={{.Commit}}
|
|
- -X main.date={{.CommitDate}}
|
|
- -X main.builtBy=goreleaser
|
|
checksum:
|
|
name_template: "checksums.txt"
|
|
|
|
archives:
|
|
- files:
|
|
# skip all other files
|
|
- none*
|
|
rlcp: true
|
|
format_overrides:
|
|
- goos: windows
|
|
format: zip
|
|
- goos: darwin
|
|
format: zip
|
|
# fq_0.2.0_linux_amd64.tar.gz
|
|
# fq_0.2.0_macos_arm64.zip
|
|
name_template: >-
|
|
{{ .ProjectName }}_
|
|
{{- .Version }}_
|
|
{{- if eq .Os "darwin" }}macos_
|
|
{{- else }}{{ .Os }}_{{ end }}
|
|
{{- .Arch }}
|
|
|
|
changelog:
|
|
sort: asc
|
|
filters:
|
|
exclude:
|
|
- "^Merge"
|
|
|
|
brews:
|
|
- skip_upload: auto
|
|
tap:
|
|
owner: wader
|
|
name: homebrew-tap
|
|
folder: Formula
|
|
homepage: https://github.com/wader/fq
|
|
description: jq for binary formats
|
|
license: MIT
|
|
test: |
|
|
system "#{bin}/fq -v"
|