From 698641a0110e2725d8318f7c626d420be829fe5a Mon Sep 17 00:00:00 2001 From: Marius Alwan Meyer Date: Wed, 15 Nov 2023 18:19:31 +0000 Subject: [PATCH] [CI] Hash before uploading --- .gitea/workflows/build.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index dd88ab8..39c18a5 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -77,12 +77,6 @@ jobs: - name: Zip Artifacts run: zip firmware.zip corne_left_nice_nano_v2.uf2 corne_right_nice_nano_v2.uf2 - - name: Upload Artifact - uses: actions/upload-artifact@v3 - with: - path: firmware.zip - name: firmware.zip - - name: Hash west modules id: hash-west run: | @@ -90,4 +84,10 @@ jobs: FILES=$(find . -name build.yml -o -name west.yml -type f -exec sha256sum \; | sort) HASH="$(echo -n $FILES | sha256sum | head -c 64)" echo "hash=$HASH" >> "$GITHUB_OUTPUT" - echo "computed hash: $HASH" \ No newline at end of file + echo "computed hash: $HASH" + + - name: Upload Artifact + uses: actions/upload-artifact@v3 + with: + path: firmware.zip + name: firmware.zip