From c3809b960caaaee4b3983d43e0805d552229b9df Mon Sep 17 00:00:00 2001 From: Denys Golubiev Date: Fri, 3 Jun 2022 12:13:06 +0200 Subject: [PATCH] Add SHA256 checksum to artifacts --- .github/workflows/main.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 48b796c..3fdd860 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -42,6 +42,15 @@ jobs: mv dist/OpenLens*.exe dist/OpenLens-${{ env.LENS_VERSION }}.exe fi shell: bash + - name: Calculate SHA256 checksum + run: | + if [ "$RUNNER_OS" == "Windows" ]; then + certutil -hashfile OpenLens-${{ env.LENS_VERSION }}.exe SHA256 > OpenLens-${{ env.LENS_VERSION }}.exe.sha256 + else + for filename in OpenLens-${{ env.LENS_VERSION }}.*; do shasum -a 256 ${filename} > ${filename}.sha256 ; done + fi + shell: bash + working-directory: lens/dist - name: Release uses: softprops/action-gh-release@v0.1.14 with: @@ -52,3 +61,4 @@ jobs: lens/dist/OpenLens-${{ env.LENS_VERSION }}.deb lens/dist/OpenLens-${{ env.LENS_VERSION }}.rpm lens/dist/OpenLens-${{ env.LENS_VERSION }}.exe + lens/dist/OpenLens-${{ env.LENS_VERSION }}.*.sha256