Skip to content

Commit

Permalink
goreleaser: Use name_template for archive name
Browse files Browse the repository at this point in the history
archive.replacements has been deprecated
so we should use archive.name_template.

Ref https://goreleaser.com/deprecations/#archivesreplacements
Blocks #22
  • Loading branch information
abhinav committed Aug 29, 2023
1 parent 7452091 commit 00d18c1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 16 deletions.
10 changes: 0 additions & 10 deletions .github/workflows/ci-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,21 +37,11 @@ jobs:
crate: rsign2
version: 0.6.1

- name: Install b3sum
uses: baptiste0928/cargo-install@bf6758885262d0e6f61089a9d8c8790d3ac3368f # v1.3.0
with:
crate: b3sum
version: 1.3.0

- uses: actions/download-artifact@v2
with:
name: artifacts
path: artifacts

- name: Checksums with BLAKE3
working-directory: artifacts
run: b3sum ./* | tee B3SUMS

- name: Checksums with SHA512
working-directory: artifacts
run: sha512sum ./* | tee SHA512SUMS
Expand Down
13 changes: 7 additions & 6 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,13 @@ builds:
- amd64
- arm64
archives:
- replacements:
darwin: Darwin
linux: Linux
windows: Windows
386: i386
amd64: x86_64
- name_template: >-
{{- .ProjectName }}_
{{- title .Os }}_
{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "386" }}i386
{{- else }}{{ .Arch }}{{ end }}
{{- if .Arm }}v{{ .Arm }}{{ end -}}
format_overrides:
- goos: windows
format: zip
Expand Down

0 comments on commit 00d18c1

Please sign in to comment.