From e1d934e1fbc39cd5bdca90a1001668b83c26d053 Mon Sep 17 00:00:00 2001 From: Spencer Owen Date: Sun, 3 Nov 2024 20:31:35 -0700 Subject: [PATCH] Keep bins in own folder md5 check --- .github/workflows/build.yaml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 0f7c563..94f32c5 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -39,12 +39,10 @@ jobs: - name: Copy manifest to firmware folder run: | - cp openspool-esp32s2/manifest.json firmware/manifest.json - cp openspool-esp32s2/*.bin firmware/ for file in openspool-esp32s2/*.bin; do md5 -q "$file" > "${file}.md5" filelength=$(wc -c <"$file") - if [ "$filelength" -ne 3 ]; then + if [ "$filelength" -ne 33 ]; then echo "md5 failed for $file" exit 1 fi @@ -57,7 +55,7 @@ jobs: committer_name: GitHub Actions committer_email: actions@github.com message: Update manifest.json - add: "firmware/manifest.json firmware/*.bin firmware/*.md5" + add: "openspool-esp32s2/*" push: true - name: Upload Artifacts