Skip to content

Commit 86bb6d5

Browse files
[QUICKFIX] Fixing goreleaser configuration on workflows
Signed-off-by: Romain BELORGEY <[email protected]>
1 parent fb46965 commit 86bb6d5

File tree

3 files changed

+10
-11
lines changed

3 files changed

+10
-11
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ jobs:
2424
go build -v .
2525
go test ./...
2626
- name: Run GoReleaser
27-
uses: goreleaser/goreleaser-action@master
27+
uses: goreleaser/goreleaser-action@v6
2828
with:
29-
args: release --snapshot --skip-publish --rm-dist
29+
distribution: goreleaser
30+
version: '~> v2'
31+
args: release --snapshot --skip=publish --clean

.github/workflows/release.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,11 @@ jobs:
1313
with:
1414
go-version: "^1.16.0"
1515
- name: Release via goreleaser
16-
uses: goreleaser/goreleaser-action@master
16+
uses: goreleaser/goreleaser-action@v6
1717
with:
18+
distribution: goreleaser
19+
#To keep same behavior
20+
version: '~> v1'
1821
args: release
1922
env:
2023
GITHUB_TOKEN: ${{ secrets.CUSTOM_GITHUB_TOKEN }}

.goreleaser.yml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
version: 2
12
before:
23
hooks:
34
- go mod tidy
@@ -7,13 +8,6 @@ builds:
78
- CGO_ENABLED=0
89
ldflags:
910
- -X github.com/technicallyjosh/easy-params/cmd.version={{ .Version }}
10-
archives:
11-
- replacements:
12-
darwin: Darwin
13-
linux: Linux
14-
windows: Windows
15-
386: i386
16-
amd64: x86_64
1711
checksum:
1812
name_template: "checksums.txt"
1913
snapshot:
@@ -25,7 +19,7 @@ changelog:
2519
- "^docs:"
2620
- "^test:"
2721
brews:
28-
- tap:
22+
- repository:
2923
owner: technicallyjosh
3024
name: homebrew-easy-params
3125
description: Opinionated CLI for easy management of SSM Parameters.

0 commit comments

Comments
 (0)