Skip to content

Commit cecfd32

Browse files
authored
Merge pull request #157 from suzuki-shunsuke/fix-goreleaser
Fix the release error
2 parents 42672b3 + 8eed343 commit cecfd32

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,6 @@ jobs:
1919
uses: goreleaser/goreleaser-action@v2
2020
with:
2121
version: latest
22-
args: release --rm-dist
22+
args: release --clean
2323
env:
2424
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.goreleaser.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
version: 2
12
before:
23
hooks:
34
- go mod download
@@ -22,11 +23,11 @@ builds:
2223
goarch: 386
2324

2425
archives:
25-
- format: tar.gz
26+
- formats: tar.gz
2627
wrap_in_directory: true
2728
format_overrides:
2829
- goos: windows
29-
format: zip
30+
formats: zip
3031
name_template: '{{ .ProjectName }}-{{ .Version }}-{{ .Os }}-{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}'
3132
files:
3233
- LICENSE
@@ -36,7 +37,7 @@ checksum:
3637
name_template: 'checksums.txt'
3738

3839
snapshot:
39-
name_template: "SNAPSHOT-{{ .Tag }}"
40+
version_template: "SNAPSHOT-{{ .Tag }}"
4041

4142
changelog:
4243
sort: asc

0 commit comments

Comments
 (0)