deps: update goreleaser

This commit is contained in:
Felipe M 2023-02-27 13:53:48 +01:00
parent 184178fe7b
commit cadeaffd31
Signed by: fmartingr
GPG Key ID: 716BC147715E716F
3 changed files with 13 additions and 8 deletions

View File

@ -23,7 +23,7 @@ jobs:
uses: goreleaser/goreleaser-action@v4
with:
version: latest
args: release --rm-dist
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

View File

@ -13,8 +13,8 @@ builds:
- arm64
- arm
goarm:
- 6
- 7
- "6"
- "7"
ignore:
- goos: windows
goarch: arm
@ -24,10 +24,15 @@ builds:
ldflags:
- -s -w
archives:
- replacements:
darwin: macos
386: i386
amd64: x86_64
- rlcp: true
name_template: >-
{{ .ProjectName }}-
{{ .Version }}
{{ .Os }}-
{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "darwin" }}macos
{{- else if eq .Arch "386" }}i386
{{- else }}{{ .Arch }}{{ end }}
source:
enabled: true
name_template: "{{ .ProjectName }}-{{ .Version }}-sources"

View File

@ -59,7 +59,7 @@ clean: ### clean test cache, build files
.PHONY: build
build: clean ### builds the project for the setup os/arch combinations
$(info: Make: Build)
@goreleaser build --rm-dist --snapshot
@goreleaser build --clean --snapshot
.PHONY: buildx
buildx: