Output SHA256 file hashes

This commit is contained in:
Jan-Otto Kröpke 2022-08-09 21:16:54 +02:00
parent c9be69f226
commit b89324589d
No known key found for this signature in database
GPG Key ID: 3F619F17002790D8
1 changed files with 2 additions and 2 deletions

View File

@ -71,9 +71,9 @@ jobs:
- name: Calculate SHA256 checksum
run: |
if [ "$RUNNER_OS" == "Windows" ]; then
certutil -hashfile OpenLens-${{ env.LENS_VERSION }}.exe SHA256 > OpenLens-${{ env.LENS_VERSION }}.exe.sha256
certutil -hashfile OpenLens-${{ env.LENS_VERSION }}.exe SHA256 | tee OpenLens-${{ env.LENS_VERSION }}.exe.sha256
else
for filename in OpenLens-${{ env.LENS_VERSION }}*; do shasum -a 256 ${filename} > ${filename}.sha256 ; done
for filename in OpenLens-${{ env.LENS_VERSION }}*; do shasum -a 256 ${filename} | tee ${filename}.sha256 ; done
fi
shell: bash
working-directory: lens/releasefiles