Skip to content
This repository was archived by the owner on Mar 15, 2025. It is now read-only.

Commit f74127e

Browse files
committed
improve goreleaser config compatibility
1 parent f6f8431 commit f74127e

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

.github/workflows/release.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
- name: Run GoReleaser
3939
uses: goreleaser/goreleaser-action@v6
4040
with:
41-
version: latest
41+
version: '~> v2'
4242
args: release --clean
4343
env:
4444
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.goreleaser.yml

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# SPDX-FileCopyrightText: 2023 Christoph Mewes
22
# SPDX-License-Identifier: MIT
33

4+
version: 2
45
builds:
56
- env:
67
# goreleaser does not work with CGO, it could also complicate
@@ -30,13 +31,13 @@ builds:
3031
goarch: '386'
3132
binary: '{{ .ProjectName }}'
3233
archives:
33-
- format: tar.gz
34+
- formats: ['tar.gz']
3435
name_template: '{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}'
3536
wrap_in_directory: true
3637
strip_binary_directory: true
3738
format_overrides:
3839
- goos: windows
39-
format: zip
40+
formats: ['zip']
4041
files:
4142
- LICENSE
4243
- README.md

0 commit comments

Comments
 (0)