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 uses: goreleaser/goreleaser-action@v4
with: with:
version: latest version: latest
args: release --rm-dist args: release --clean
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

View File

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

View File

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