Skip to content

Commit

Permalink
Fix gorelease errors
Browse files Browse the repository at this point in the history
Fix deprecations and removal notices
based on goreleaser 1.20 release
  • Loading branch information
piyush-garg committed Oct 20, 2023
1 parent bbdf079 commit 863d967
Show file tree
Hide file tree
Showing 2 changed files with 14 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 @@ -28,7 +28,7 @@ jobs:
- uses: goreleaser/[email protected]
with:
version: latest
args: release --timeout=60m --rm-dist
args: release --timeout=60m --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
AUR_PRIVATE_KEY: ${{ secrets.AUR_PRIVATE_KEY }}
21 changes: 13 additions & 8 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,18 @@ builds:
- mips64le
- ppc64le
archives:
- name_template: "{{ .Binary }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}{{ if .Mips }}_{{ .Mips }}{{ end }}"
replacements:
darwin: Darwin
linux: Linux
windows: Windows
386: i386
amd64: x86_64
- name_template: >-
{{- .Binary }}_
{{- .Version }}_
{{- .Os }}_
{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "386" }}i386
{{- else if eq .Arch "darwin" }}MacOS
{{- else if eq .Arch "linux" }}Linux
{{- else if eq .Arch "windows" }}Windows
{{- else }}{{ .Arch }}{{ end }}
{{- if .Arm }}v{{ .Arm }}{{ end -}}
{{- if .Mips }}_{{ .Mips }}{{ end -}}
checksum:
name_template: 'checksums.txt'
snapshot:
Expand All @@ -41,7 +46,7 @@ changelog:

brews:
- name: opc
tap:
repository:
owner: openshift-pipelines
name: opc
folder: Formula
Expand Down

0 comments on commit 863d967

Please sign in to comment.