Skip to content

Commit 7fb0365

Browse files
author
muthukrishnan.s
committed
ci: specify exact go, goreleaser version
1 parent 8ceaa42 commit 7fb0365

File tree

2 files changed

+7
-10
lines changed

2 files changed

+7
-10
lines changed

.github/workflows/goreleaser.yml

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: goreleaser
33
on:
44
push:
55
tags:
6-
- '*'
6+
- "*"
77

88
permissions:
99
contents: write
@@ -12,22 +12,19 @@ jobs:
1212
goreleaser:
1313
runs-on: ubuntu-latest
1414
steps:
15-
-
16-
name: Checkout
15+
- name: Checkout
1716
uses: actions/checkout@v2
1817
with:
1918
fetch-depth: 0
20-
-
21-
name: Set up Go
19+
- name: Set up Go
2220
uses: actions/setup-go@v2
2321
with:
24-
go-version: 1.18
25-
-
26-
name: Run GoReleaser
22+
go-version: 1.24.2
23+
- name: Run GoReleaser
2724
uses: goreleaser/goreleaser-action@v2
2825
with:
2926
distribution: goreleaser
30-
version: latest
27+
version: v1.18.2
3128
args: release --rm-dist
3229
env:
3330
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.goreleaser.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ archives:
2626
- README.md
2727

2828
checksum:
29-
name_template: "{{ .ProjectName }}_{{ .Version }}_checksums.txt"
29+
name_template: "{{ .ProjectName }}_v{{.Major}}.{{.Minor}}.{{.Patch}}_checksums.txt"
3030
algorithm: sha256
3131

3232
snapshot:

0 commit comments

Comments
 (0)