Skip to content

Commit

Permalink
chore: update GoReleaser and goreleaser-action and fix deprecation wa…
Browse files Browse the repository at this point in the history
…rning (#112)
  • Loading branch information
suzuki-shunsuke authored Dec 20, 2024
1 parent 2eea064 commit bd8d9fa
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 10 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ jobs:
with:
token: ${{ secrets.CODECOV_TOKEN }}
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v1
uses: goreleaser/goreleaser-action@v6.1.0
with:
version: v1.1.0
version: v2.5.0
args: release
env:
GITHUB_TOKEN: ${{ secrets.GITHUBTOKEN }}
17 changes: 9 additions & 8 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
version: 2
before:
hooks:
- sh -c "go run . _gendoc --man | gzip > rare.1.gz"
Expand Down Expand Up @@ -44,12 +45,12 @@ builds:

archives:
- allow_different_binary_count: true
replacements:
darwin: Darwin
linux: Linux
windows: Windows
386: i386
amd64: x86_64
name_template: >-
{{- .ProjectName }}_
{{- .Version }}_
{{- title .Os }}_
{{- if eq .Arch "amd64" }}x86_64
{{- else }}{{ .Arch }}{{ end -}}
format_overrides:
- goos: windows
format: zip
Expand All @@ -61,7 +62,7 @@ archives:
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ .Tag }}-next"
version_template: "{{ .Tag }}-next"
changelog:
sort: asc
filters:
Expand All @@ -87,7 +88,7 @@ nfpms:
dst: /usr/share/man/man1/rare.1.gz

brews:
- tap:
- repository:
owner: zix99
name: homebrew-rare
commit_author:
Expand Down

0 comments on commit bd8d9fa

Please sign in to comment.