Skip to content

Commit f6b0443

Browse files
authored
Final goreleaser fix (google#753)
Should be the last goreleaser fix, the previous google#752 worked, but revealed another bug. This should fix the binary release error.
1 parent cb3eeb2 commit f6b0443

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/workflows/goreleaser.yml

+1-3
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,7 @@ jobs:
5555
run: |
5656
set -euo pipefail
5757
checksum_file=$(echo "$ARTIFACTS" | jq -r '.[] | select (.type=="Checksum") | .path')
58-
if $checksum_file != *"osv-reporter"
59-
echo "hashes=$(cat $checksum_file | base64 -w0)" >> "$GITHUB_OUTPUT"
60-
fi
58+
echo "hashes=$(cat $checksum_file | base64 -w0)" >> "$GITHUB_OUTPUT"
6159
provenance:
6260
needs: [goreleaser]
6361
permissions:

.goreleaser.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,9 @@ docker_manifests:
116116

117117
archives:
118118
- format: binary
119-
name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
119+
name_template: "{{ .Binary }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
120+
builds:
121+
- osv-scanner
120122
checksum:
121123
name_template: "{{ .ProjectName }}_{{ .Version }}_SHA256SUMS"
122124
algorithm: sha256

0 commit comments

Comments
 (0)