Skip to content

Commit

Permalink
GoReleaser config
Browse files Browse the repository at this point in the history
  • Loading branch information
jmhobbs committed Aug 26, 2024
1 parent 6ce41e9 commit d985c17
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 12 deletions.
12 changes: 0 additions & 12 deletions .gopack.yml

This file was deleted.

40 changes: 40 additions & 0 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
@@ -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:"

0 comments on commit d985c17

Please sign in to comment.