fix goreleaser

This commit is contained in:
Robert Janetzko 2023-11-17 16:20:29 +01:00
parent 5120a19a28
commit 3deeb4cf80
2 changed files with 14 additions and 8 deletions

View File

@ -18,7 +18,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.18
go-version: 1.21
- name: Build
run: cd backend && go build -v ./...
@ -33,13 +33,13 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.18
go-version: 1.21
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
with:
version: latest
workdir: backend
args: release --rm-dist
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

View File

@ -18,11 +18,17 @@ builds:
- amd64
archives:
- format: zip
name_template: "legendsbrowser-{{ .Version }}-{{ .Os }}"
replacements:
darwin: macos
linux: linux
windows: win
name_template: >-
legendsbrowser-
{{- .Version }}-
{{- if eq .Os "darwin" }}macos
{{- else if eq .Os "windows" }}win
{{- else }}{{ .Os }}{{ end }}
# name_template: "legendsbrowser-{{ .Version }}-{{ .Os }}"
# replacements:
# darwin: macos
# linux: linux
# windows: win
changelog:
sort: asc
filters: