Skip to content

Commit f7e3bbd

Browse files
committed
goreleaser: Use name_template for archive name
archive.replacements has been deprecated so we should use archive.name_template. Ref https://goreleaser.com/deprecations/#archivesreplacements Blocks #22
1 parent 7452091 commit f7e3bbd

File tree

2 files changed

+31
-27
lines changed

2 files changed

+31
-27
lines changed

.github/workflows/ci-publish.yml

Lines changed: 24 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -56,27 +56,30 @@ jobs:
5656
working-directory: artifacts
5757
run: sha512sum ./* | tee SHA512SUMS
5858

59-
- name: Sign checksums
60-
working-directory: artifacts
61-
shell: bash
62-
env:
63-
RELEASE_KEY: ${{ secrets.RELEASE_KEY }}
64-
version: ${{ inputs.version }}
65-
run: |
66-
set -u
67-
echo "$RELEASE_KEY" > release.key
68-
set -x
69-
for algo in B3 SHA512; do
70-
echo | rsign sign \
71-
-p "${GITHUB_WORKSPACE}/.github/workflows/release.pub" \
72-
-s release.key \
73-
-t "${{ inputs.project }} v$version signed with automated key" \
74-
-c 'see website for signing information' \
75-
-x "${algo}SUMS.auto.minisig" \
76-
"${algo}SUMS"
77-
done
78-
rm release.key
79-
cat {B3,SHA512}SUMS.auto.minisig
59+
# FIXME: This appears broken.
60+
# Ref https://github.com/pulumi/go-change/issues/24
61+
#
62+
# - name: Sign checksums
63+
# working-directory: artifacts
64+
# shell: bash
65+
# env:
66+
# RELEASE_KEY: ${{ secrets.RELEASE_KEY }}
67+
# version: ${{ inputs.version }}
68+
# run: |
69+
# set -u
70+
# echo "$RELEASE_KEY" > release.key
71+
# set -x
72+
# for algo in B3 SHA512; do
73+
# rsign sign \
74+
# -p "${GITHUB_WORKSPACE}/.github/workflows/release.pub" \
75+
# -s release.key \
76+
# -t "${{ inputs.project }} v$version signed with automated key" \
77+
# -c 'see website for signing information' \
78+
# -x "${algo}SUMS.auto.minisig" \
79+
# "${algo}SUMS"
80+
# done
81+
# rm release.key
82+
# cat {B3,SHA512}SUMS.auto.minisig
8083

8184
- uses: actions/upload-artifact@v2
8285
with:

.goreleaser.yaml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,13 @@ builds:
1414
- amd64
1515
- arm64
1616
archives:
17-
- replacements:
18-
darwin: Darwin
19-
linux: Linux
20-
windows: Windows
21-
386: i386
22-
amd64: x86_64
17+
- name_template: >-
18+
{{- .ProjectName }}_
19+
{{- title .Os }}_
20+
{{- if eq .Arch "amd64" }}x86_64
21+
{{- else if eq .Arch "386" }}i386
22+
{{- else }}{{ .Arch }}{{ end }}
23+
{{- if .Arm }}v{{ .Arm }}{{ end -}}
2324
format_overrides:
2425
- goos: windows
2526
format: zip

0 commit comments

Comments
 (0)