From 0de45497a58f80075b8ab9eb1e2c58c312ea996e Mon Sep 17 00:00:00 2001 From: Almenon Date: Fri, 26 Apr 2024 08:42:42 -0700 Subject: [PATCH] revert checksum changes (#332) the new checksum action is broken, so reverting back to original code --- .github/workflows/release.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 411ad855..183aa7be 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -35,12 +35,11 @@ jobs: - name: Get the version id: get_version run: echo VERSION=${GITHUB_REF#refs/tags/v} >> $GITHUB_OUTPUT - - uses: jmgilman/actions-generate-checksum@521a903edf511407d8bd5535d257402fd9bb5db0 - id: checksums - with: - patterns: "build/${{ steps.get_version.outputs.VERSION }}/*" - method: sha512 - output: checksums.txt + - name: Create checksums + run: | + readonly BUILD_DIR="build/${{ steps.get_version.outputs.VERSION }}" + find "$BUILD_DIR" -type f -exec sha256sum {} + | awk -v build_dir="$BUILD_DIR" '{sub("^"build_dir"/", ""); print $1, $2}' > SHA256SUMS + find "$BUILD_DIR" -type f -exec sha512sum {} + | awk -v build_dir="$BUILD_DIR" '{sub("^"build_dir"/", ""); print $1, $2}' > SHA512SUMS # Create the release - uses: "marvinpinto/action-automatic-releases@d68defdd11f9dcc7f52f35c1b7c236ee7513bcc1" @@ -49,4 +48,5 @@ jobs: prerelease: false files: | build/${{ steps.get_version.outputs.VERSION }}/* - checksums.txt + SHA256SUMS + SHA512SUMS