Skip to content

Commit

Permalink
chore: fix release pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
rahmatrhd committed Aug 14, 2023
1 parent 02bd9f0 commit 23b2f0c
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
uses: goreleaser/[email protected]
with:
distribution: goreleaser
version: v1.8.3
version: latest
args: --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GO_RELEASER_TOKEN }}
22 changes: 14 additions & 8 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,16 @@ builds:
env:
- CGO_ENABLED=0
archives:
- replacements:
darwin: macos
linux: linux
windows: windows
386: i386
amd64: x86_64
- name_template: >-
{{- .ProjectName }}_
{{- .Version }}_
{{- title .Os }}_
{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "386" }}i386
{{- else if eq .Arch "linux" }}linux
{{- else if eq .Arch "windows" }}windows
{{- else if eq .Arch "darwin" }}macos
{{- else }}{{ .Arch }}{{ end }}
format_overrides:
- goos: windows
format: zip
Expand Down Expand Up @@ -58,8 +62,10 @@ nfpms:
formats:
- deb
- rpm
replacements:
darwin: macOS
file_name_template: >-
{{ .ProjectName }}_
{{- title .Os }}_
{{- if eq .Arch "darwin" }}macos{{- else }}{{ .Arch }}{{ end }}
scoop:
bucket:
owner: goto
Expand Down

0 comments on commit 23b2f0c

Please sign in to comment.