fix goreleaser
This commit is contained in:
parent
5120a19a28
commit
3deeb4cf80
|
@ -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 }}
|
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue