Skip to content

Commit 7dda45e

Browse files
authored
fix: fix GoReleaser config (#418)
Signed-off-by: zhuwenxing <[email protected]>
1 parent 31d9b76 commit 7dda45e

File tree

4 files changed

+12
-11
lines changed

4 files changed

+12
-11
lines changed

.github/workflows/release.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ jobs:
1818
with:
1919
fetch-depth: 0
2020
- run: git fetch --force --tags
21-
- uses: actions/setup-go@v3
21+
- uses: actions/setup-go@v5
2222
with:
23-
go-version: 1.21
23+
go-version: '1.22'
2424
cache: true
2525

2626
- uses: goreleaser/goreleaser-action@v4
@@ -46,9 +46,9 @@ jobs:
4646
with:
4747
fetch-depth: 0
4848
- run: git fetch --force --tags
49-
- uses: actions/setup-go@v3
49+
- uses: actions/setup-go@v5
5050
with:
51-
go-version: 1.21
51+
go-version: '1.22'
5252
cache: true
5353

5454
- uses: goreleaser/goreleaser-action@v4
@@ -74,9 +74,9 @@ jobs:
7474
with:
7575
fetch-depth: 0
7676
- run: git fetch --force --tags
77-
- uses: actions/setup-go@v3
77+
- uses: actions/setup-go@v5
7878
with:
79-
go-version: 1.18
79+
go-version: '1.22'
8080
cache: true
8181
- name: Make directories
8282
run: |

.goreleaser-darwin.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# This is an example .goreleaser.yml file with some sensible defaults.
22
# Make sure to check the documentation at https://goreleaser.com
3+
version: 2
4+
35
before:
46
hooks:
57
# You may remove this if you don't use go modules.

.goreleaser-linux.yaml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# This is an example .goreleaser.yml file with some sensible defaults.
22
# Make sure to check the documentation at https://goreleaser.com
3+
version: 2
4+
35
before:
46
hooks:
57
# You may remove this if you don't use go modules.
@@ -17,7 +19,6 @@ builds:
1719
goarch:
1820
- amd64
1921
- arm64
20-
- arm
2122
overrides:
2223
- goos: linux
2324
goarch: amd64
@@ -27,10 +28,6 @@ builds:
2728
goarch: arm64
2829
env:
2930
- CGO_ENABLED=0
30-
- goos: linux
31-
goarch: arm
32-
env:
33-
- CGO_ENABLED=0
3431
ldflags:
3532
- -extldflags "-static"
3633
archives:

.goreleaser-release.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
version: 2
2+
13
builds:
24
- skip: true
35
changelog:

0 commit comments

Comments
 (0)