Skip to content

Commit 3b07bb3

Browse files
committed
Fix goreleaser release workflow for GoReleaser v2
GoReleaser v2 removed --rm-dist (use --clean) and changed config schema (version: 2 required, archives.format -> formats, changelog.skip -> disable).
1 parent c49f303 commit 3b07bb3

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444
uses: goreleaser/goreleaser-action@f82d6c1c344bcacabba2c841718984797f664a6b # v4.2.0
4545
with:
4646
version: latest
47-
args: release --rm-dist
47+
args: release --clean
4848
env:
4949
GPG_FINGERPRINT: ${{ steps.import_gpg.outputs.fingerprint }}
5050
# GitHub sets this automatically

.goreleaser.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
# Visit https://goreleaser.com for documentation on how to customize this
55
# behavior.
6+
version: 2
67
before:
78
hooks:
89
# this is just an example and not a requirement for provider building/publishing
@@ -33,7 +34,7 @@ builds:
3334
goarch: '386'
3435
binary: '{{ .ProjectName }}_v{{ .Version }}'
3536
archives:
36-
- format: zip
37+
- formats: [zip]
3738
name_template: '{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}'
3839
checksum:
3940
extra_files:
@@ -60,4 +61,4 @@ release:
6061
# If you want to manually examine the release before its live, uncomment this line:
6162
# draft: true
6263
changelog:
63-
skip: true
64+
disable: true

0 commit comments

Comments
 (0)