diff --git a/.gitignore b/.gitignore index 5dfd121..494ccd5 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ .envrc bin +dist diff --git a/.goreleaser.yml b/.goreleaser.yml new file mode 100644 index 0000000..462e720 --- /dev/null +++ b/.goreleaser.yml @@ -0,0 +1,28 @@ +# This is an example goreleaser.yaml file with some sane defaults. +# Make sure to check the documentation at http://goreleaser.com +before: + hooks: + # You may remove this if you don't use go modules. + - go mod download + # you may remove this if you don't need go generate + - go generate ./... +builds: +- env: + - CGO_ENABLED=0 +archives: +- replacements: + darwin: Darwin + linux: Linux + windows: Windows + 386: i386 + amd64: x86_64 +checksum: + name_template: 'checksums.txt' +snapshot: + name_template: "{{ .Tag }}-next" +changelog: + sort: asc + filters: + exclude: + - '^docs:' + - '^test:' diff --git a/Makefile b/Makefile index 3edd0e2..d6ee930 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,2 @@ - - build: - go build -o bin/plaid-cli cmd/plaid-cli/main.go + go build -o bin/plaid-cli diff --git a/go.mod b/go.mod index 1aea430..f8a6fe0 100644 --- a/go.mod +++ b/go.mod @@ -4,7 +4,7 @@ go 1.14 require ( github.com/fsnotify/fsnotify v1.4.9 // indirect - github.com/manifoldco/promptui v0.7.0 // indirect + github.com/manifoldco/promptui v0.7.0 github.com/mitchellh/mapstructure v1.3.2 // indirect github.com/pelletier/go-toml v1.8.0 // indirect github.com/plaid/plaid-go v0.0.0-20200529200923-9627743aa512 diff --git a/cmd/plaid-cli/main.go b/main.go similarity index 100% rename from cmd/plaid-cli/main.go rename to main.go