Add goreleaser

This commit is contained in:
Jay Gabriels 2021-12-19 09:58:52 -08:00
parent 29f454c5ad
commit 9cf84c37c8
No known key found for this signature in database
GPG Key ID: 47EC2E34963C2D56
3 changed files with 33 additions and 0 deletions

2
.gitignore vendored
View File

@ -3,3 +3,5 @@ ghorg
debug
.DS_Store
coverage.out
dist/

27
.goreleaser.yml Normal file
View File

@ -0,0 +1,27 @@
# This is an example .goreleaser.yml file with some sensible defaults.
# Make sure to check the documentation at https://goreleaser.com
before:
hooks:
# You may remove this if you don't use go modules.
- go mod tidy
- go mod vendor
builds:
- env:
- CGO_ENABLED=0
goos:
- linux
- windows
- darwin
archives:
- replacements:
darwin: Darwin
linux: Linux
windows: Windows
386: i386
amd64: x86_64
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ incpatch .Version }}-next"
changelog:
skip: true

View File

@ -43,6 +43,10 @@ ghorg clone kubernetes --config=$HOME/.config/ghorg/other-config.yaml
## Install
### Prebuilt Binaries
See [releases](https://github.com/gabrie30/ghorg/releases) to download binaries directly
### Homebrew
> optional but recommended