From 42667480f539d20e233614fe8637c6e6f74b9d38 Mon Sep 17 00:00:00 2001 From: Ryan Volz Date: Fri, 12 Mar 2021 12:25:47 -0500 Subject: [PATCH] Add sha256 hashing for built installers. --- .github/workflows/build_radioconda.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/workflows/build_radioconda.yml b/.github/workflows/build_radioconda.yml index 3cd0f58..1e5307f 100644 --- a/.github/workflows/build_radioconda.yml +++ b/.github/workflows/build_radioconda.yml @@ -103,6 +103,17 @@ jobs: conda info conda list + - name: Calculate sha256 hash + shell: bash + env: + OS_NAME: ${{ matrix.OS_NAME }} + ARCH: ${{ matrix.ARCH }} + run: | + for INSTALLER_PATH in dist/$DISTNAME-*-$OS_NAME-$ARCH.*; do + HASH_PATH="$INSTALLER_PATH.sha256" + sha256sum $INSTALLER_PATH > $HASH_PATH + done + - name: Upload to Github artifact if: ${{ (success() || failure()) && !startsWith(github.ref, 'refs/tags/') }} uses: actions/upload-artifact@v2