Skip to content

Commit

Permalink
chore: Fix goreleaser deprecations
Browse files Browse the repository at this point in the history
  • Loading branch information
mrexox committed Feb 22, 2023
1 parent 37fd2db commit 3f4eca1
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
with:
distribution: goreleaser
version: latest
args: release --rm-dist
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAPCRAFT_STORE_CREDENTIALS }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
with:
distribution: goreleaser
version: latest
args: build --snapshot --skip-validate --rm-dist
args: build --snapshot --skip-validate --clean
- name: Tar binaries to preserve executable bit
run: 'tar -cvf lefthook-binaries.tar --directory dist/ $(find dist/ -executable -type f -printf "%P\0" | xargs --null)'
- name: Upload binaries as artifacts
Expand Down
26 changes: 15 additions & 11 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,21 +20,25 @@ archives:
format: binary
files:
- none*
replacements:
windows: Windows
darwin: MacOS
linux: Linux
amd64: x86_64
name_template: >-
{{ .ProjectName }}_
{{- .Version }}_
{{- if eq .Os "darwin" }}MacOS
{{- else }}{{ title .Os }}_{{ end }}
{{- if eq .Arch "amd64" }}x86_64
{{- else }}{{ .Arch }}{{ end }}
- id: lefthook-gz
format: gz
files:
- none*
replacements:
windows: Windows
darwin: MacOS
linux: Linux
386: i386
amd64: x86_64
name_template: >-
{{ .ProjectName }}_
{{- .Version }}_
{{- if eq .Os "darwin" }}MacOS
{{- else }}{{ title .Os }}{{ end }}_
{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "386" }}i386
{{- else }}{{ .Arch }}{{ end }}
checksum:
name_template: '{{ .ProjectName }}_checksums.txt'
snapshot:
Expand Down

0 comments on commit 3f4eca1

Please sign in to comment.