From 8ecf61e4a259462d32bcecee84583924162020a5 Mon Sep 17 00:00:00 2001 From: Gowtham Ravella Date: Tue, 5 Mar 2024 23:22:12 -0500 Subject: [PATCH] Added checksum generation and upload steps to CI workflow --- .github/workflows/ci.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2cad11f..0f61b81 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -101,3 +101,15 @@ jobs: SRC_URL: ${{ env.DOWNLOADS_DIR }}/${{ env.START_TIME }}/openwisp DST_URL: gs://${{ secrets.GCS_DOWNLOADS_BUCKET_NAME }}/openwisp-config/${{ env.START_TIME }}-${{ env.COMMIT_SHA }} LATEST_URL: gs://${{ secrets.GCS_DOWNLOADS_BUCKET_NAME }}/openwisp-config/latest + + - name: Generate Checksum + run: | + cd ${{ env.DOWNLOADS_DIR }}/${{ env.START_TIME }}/openwisp + for file in *; do + if [ -f "$file" ]; then + sha256sum "$file" > "$file.sha256" + else + echo "No files found for checksum generation." + exit 1 + fi + done