diff --git a/.gopack.yml b/.gopack.yml deleted file mode 100644 index bb5f571..0000000 --- a/.gopack.yml +++ /dev/null @@ -1,12 +0,0 @@ -author: John Hobbs -description: ':parrot: for your terminal' -os: darwin linux windows -includes: - - README.md - - LICENSE -excludes: - - frames - - \.git -script: - - go get -v - - go build diff --git a/.goreleaser.yaml b/.goreleaser.yaml new file mode 100644 index 0000000..0d9df66 --- /dev/null +++ b/.goreleaser.yaml @@ -0,0 +1,40 @@ +# yaml-language-server: $schema=https://goreleaser.com/static/schema.json +# vim: set ts=2 sw=2 tw=0 fo=cnqoj +version: 2 + +before: + hooks: + - go mod tidy + +builds: + - id: terminal-parrot + binary: terminal-parrot + goarch: + - amd64 + - arm64 + +archives: + - format: tar.gz + # this name template makes the OS and Arch compatible with the results of `uname`. + name_template: >- + {{ .ProjectName }}_ + {{- title .Os }}_ + {{- if eq .Arch "amd64" }}x86_64 + {{- else if eq .Arch "386" }}i386 + {{- else }}{{ .Arch }}{{ end }} + {{- if .Arm }}v{{ .Arm }}{{ end }} + # use zip for windows archives + format_overrides: + - goos: windows + format: zip + files: + - LICENSE + - animations/* + - snap/* + +changelog: + sort: asc + filters: + exclude: + - "^docs:" + - "^test:"