Skip to content

Commit 1b56bbb

Browse files
write checksums to BUILD_ARTIFACT_DIR
1 parent ef9ab77 commit 1b56bbb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.goreleaser.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ builds:
3535
main: './cmd/keyfactor'
3636
hooks:
3737
pre:
38-
- cmd: echo $(echo -n {{.Target}} ; echo -n " "; sha256sum {{.Name}}) >> vault_binary_checksums.txt
38+
- cmd: sh -c "echo $(echo -n {{.Target}}; echo -n ' '; sha256sum {{.Name}}) > ${{ env.BUILD_ARTIFACT_DIR }}/vault_binary_checksums.txt"
3939
archives:
4040
- format: zip
4141
name_template: '{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}'
@@ -59,7 +59,7 @@ release:
5959
extra_files:
6060
- glob: 'installation.txt'
6161
- glob: 'LICENSE.txt'
62-
- glob: 'vault_binary_checksums.txt'
62+
- glob: '${{ env.BUILD_ARTIFACT_DIR }}/vault_binary_checksums.txt'
6363
# If you want to manually examine the release before its live, uncomment this line:
6464
draft: true
6565
changelog:

0 commit comments

Comments
 (0)