Skip to content

Commit 7ffcec1

Browse files
committed
chore(ci): update release workflow to latest goreleaser version
1 parent e38e0b6 commit 7ffcec1

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

.github/workflows/release.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,11 @@ jobs:
3838
PASSPHRASE: ${{ secrets.PASSPHRASE }}
3939
-
4040
name: Run GoReleaser
41-
uses: goreleaser/goreleaser-action@v2
41+
uses: goreleaser/goreleaser-action@v6
4242
with:
43-
version: latest
44-
args: release --rm-dist
43+
distribution: goreleaser
44+
version: '~> v2'
45+
args: release
4546
env:
4647
GPG_FINGERPRINT: ${{ steps.import_gpg.outputs.fingerprint }}
4748
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.goreleaser.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# Visit https://goreleaser.com for documentation on how to customize this
22
# behavior.
3+
version: 2
34
before:
45
hooks:
56
# this is just an example and not a requirement for provider building/publishing
@@ -30,7 +31,7 @@ builds:
3031
goarch: '386'
3132
binary: '{{ .ProjectName }}_v{{ .Version }}'
3233
archives:
33-
- format: zip
34+
- formats: [ 'zip' ]
3435
name_template: '{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}'
3536
checksum:
3637
name_template: '{{ .ProjectName }}_{{ .Version }}_SHA256SUMS'
@@ -51,4 +52,4 @@ release:
5152
# If you want to manually examine the release before its live, uncomment this line:
5253
# draft: true
5354
changelog:
54-
skip: true
55+
disable: true

0 commit comments

Comments
 (0)