WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit 599e7ab

Browse files
shamatonMasayuki Shamoto
authored andcommitted
update goreleaser setting
1 parent fa62a16 commit 599e7ab

File tree

2 files changed

+18
-16
lines changed

2 files changed

+18
-16
lines changed

.github/workflows/release.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,19 +16,20 @@ jobs:
1616
runs-on: ubuntu-latest
1717
steps:
1818
- name: Checkout
19-
uses: actions/checkout@v2
19+
uses: actions/checkout@v5
2020
with:
2121
fetch-depth: 1
2222
path: ${{ env.WORKSPACE }}
2323
- name: Setup Go
24-
uses: actions/setup-go@v2
24+
uses: actions/setup-go@v5
2525
with:
26-
go-version: 1.18
26+
go-version: 1.25
2727
- name: Run GoReleaser
28-
uses: goreleaser/goreleaser-action@v2
28+
uses: goreleaser/goreleaser-action@v6
2929
with:
30-
version: latest
31-
args: release --rm-dist
30+
distribution: goreleaser
31+
version: '~> v2'
32+
args: release --clean
3233
workdir: ${{ env.WORKSPACE }}
3334
env:
3435
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.goreleaser.yml

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1+
version: 2
2+
13
project_name: msgpackgen
2-
env:
3-
- GO111MODULE=on
4+
45
before:
56
hooks:
67
- go mod tidy
@@ -18,15 +19,15 @@ builds:
1819
- linux
1920
- windows
2021
archives:
21-
- name_template: '{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}'
22-
replacements:
23-
darwin: darwin
24-
linux: linux
25-
windows: windows
26-
386: i386
27-
amd64: x86_64
22+
- name_template: >-
23+
{{ .ProjectName }}_{{ tolower .Os }}_
24+
{{- if eq .Arch "amd64" -}}x86_64
25+
{{- else if eq .Arch "386" -}}i386
26+
{{- else -}}{{ .Arch }}{{- end -}}
27+
{{- if .Arm -}}v{{ .Arm }}{{- end -}}
28+
2829
format_overrides:
2930
- goos: windows
30-
format: zip
31+
formats: [zip]
3132
release:
3233
prerelease: auto

0 commit comments

Comments
 (0)