Skip to content

Commit

Permalink
Final goreleaser fix (#753)
Browse files Browse the repository at this point in the history
Should be the last goreleaser fix, the previous #752 worked, but
revealed another bug. This should fix the binary release error.
  • Loading branch information
another-rex committed Jan 18, 2024
1 parent cb3eeb2 commit f6b0443
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/goreleaser.yml
Expand Up @@ -55,9 +55,7 @@ jobs:
run: |
set -euo pipefail
checksum_file=$(echo "$ARTIFACTS" | jq -r '.[] | select (.type=="Checksum") | .path')
if $checksum_file != *"osv-reporter"
echo "hashes=$(cat $checksum_file | base64 -w0)" >> "$GITHUB_OUTPUT"
fi
echo "hashes=$(cat $checksum_file | base64 -w0)" >> "$GITHUB_OUTPUT"
provenance:
needs: [goreleaser]
permissions:
Expand Down
4 changes: 3 additions & 1 deletion .goreleaser.yml
Expand Up @@ -116,7 +116,9 @@ docker_manifests:

archives:
- format: binary
name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
name_template: "{{ .Binary }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
builds:
- osv-scanner
checksum:
name_template: "{{ .ProjectName }}_{{ .Version }}_SHA256SUMS"
algorithm: sha256
Expand Down

0 comments on commit f6b0443

Please sign in to comment.