From c6d0cccb76ced338ed6bfe43172b3ea321544cd5 Mon Sep 17 00:00:00 2001 From: Kevin Stewart Date: Fri, 16 May 2025 12:28:59 -0700 Subject: [PATCH] Switch release artifact to zip with SHA256 This change updates the build_release_zip workflow job to create and upload a .zip archive and its corresponding .sha256 checksum file instead of a .tar archive. --- .github/workflows/build-release.yml | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build-release.yml b/.github/workflows/build-release.yml index 50e8e7c..572014e 100644 --- a/.github/workflows/build-release.yml +++ b/.github/workflows/build-release.yml @@ -107,13 +107,19 @@ jobs: VERSIONED_DIR="rayhunter-v${{ env.VERSION }}" mkdir "$VERSIONED_DIR" mv dist/* "$VERSIONED_DIR"/ - - name: Archive release directory + - name: Archive release directory as zip run: | VERSIONED_DIR="rayhunter-v${{ env.VERSION }}" - tar -cvf "$VERSIONED_DIR.tar" "$VERSIONED_DIR" - - name: Upload release + zip -r "$VERSIONED_DIR.zip" "$VERSIONED_DIR" + - name: Compute SHA256 of zip + run: | + VERSIONED_DIR="rayhunter-v${{ env.VERSION }}" + sha256sum "$VERSIONED_DIR.zip" > "$VERSIONED_DIR.zip.sha256" + - name: Upload zip release and sha256 uses: actions/upload-artifact@v4 with: - name: rayhunter-v${{ env.VERSION }}.tar - path: rayhunter-v${{ env.VERSION }}.tar + name: rayhunter-v${{ env.VERSION }} + path: | + rayhunter-v${{ env.VERSION }}.zip + rayhunter-v${{ env.VERSION }}.zip.sha256 if-no-files-found: error