Skip to content

Commit

Permalink
Update GoReleaser config, add comment to gitignore
Browse files Browse the repository at this point in the history
  • Loading branch information
cudevmaxwell committed Jul 21, 2023
1 parent 894ca8e commit ff8c70a
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 45 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,5 @@
# Dependency directories (remove the comment below to include it)
# vendor/

# GoReleaser dist folder
dist/
32 changes: 32 additions & 0 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
builds:
- env:
- CGO_ENABLED=0
targets:
- go_first_class

archives:
- format: tar.gz
wrap_in_directory: true
# 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
checksum:
algorithm: sha256
name_template: 'sha256_checksums.txt'
snapshot:
name_template: "{{ incpatch .Version }}-next"
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
45 changes: 0 additions & 45 deletions .goreleaser.yml

This file was deleted.

0 comments on commit ff8c70a

Please sign in to comment.