Skip to content

Commit

Permalink
ci: Added .goreleaser.yaml file
Browse files Browse the repository at this point in the history
  • Loading branch information
crossbone-magister committed Jan 26, 2024
1 parent 55a5c86 commit 9ad3956
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
before:
hooks:
- go mod tidy
builds:
- env:
- CGO_ENABLED=0
binary:
tag-tree
goos:
#Timewarrior is officially distributed only on linux platforms
- linux
goarch:
- amd64

archives:
-
id: binary
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 }}
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ incpatch .Version }}-snapshot"
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'

0 comments on commit 9ad3956

Please sign in to comment.