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

View File

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