Skip to content
This repository has been archived by the owner on Dec 26, 2023. It is now read-only.

Commit

Permalink
add releaser configs
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasfcosta committed Sep 3, 2023
1 parent 3256d77 commit ce370cc
Showing 1 changed file with 52 additions and 0 deletions.
52 changes: 52 additions & 0 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
before:
hooks:
- go mod tidy
- go generate ./...
builds:
- env:
- CGO_ENABLED=0
goos:
- linux
- windows
- darwin

archives:
- format: tar.gz
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 }}
format_overrides:
- goos: windows
format: zip

checksum:
name_template: "checksums.txt"
snapshot:
name_template: "{{ incpatch .Version }}-rc"
changelog:
use: github-native
sort: asc
filters:
exclude:
- "^docs:"
- "^test:"

release:
github:
owner: ergomake
name: layerform
ids: []
draft: true
replace_existing_draft: true
target_commitish: "{{ .Commit }}"
prerelease: auto
make_latest: true
mode: append
footer: |
Those were the changes on {{ .Tag }}.
name_template: "{{.ProjectName}}-v{{.Version}}"
skip_upload: false

0 comments on commit ce370cc

Please sign in to comment.