From e2ba84bfb3b4a01820ccd3a057b723be7cf94e77 Mon Sep 17 00:00:00 2001 From: Wassim Metallaoui Date: Sat, 8 Jun 2024 13:05:07 -0500 Subject: [PATCH] fix: generate and include shas for each archive --- .github/workflows/release.yml | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 21a9261..5182774 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -31,12 +31,11 @@ jobs: - name: Build binary uses: houseabsolute/actions-rust-cross@v0 with: - command: ${{ matrix.platform.command }} target: ${{ matrix.platform.target }} args: "--locked --release" strip: true - - name: Package as archive + - name: Archive binary shell: bash run: | cd target/${{ matrix.platform.target }}/release @@ -47,17 +46,16 @@ jobs: fi cd - + - name: Generate SHA-256 + run: shasum -a 256 ${{ matrix.platform.name }} > ${{ matrix.platform.name }}-sha.txt + - name: Publish release artifacts uses: actions/upload-artifact@v4 with: - name: elgato-light-${{ matrix.platform.os_name }} + name: elgato-light-${{ matrix.platform.target }} path: "elgato-light-*" - - name: Generate SHA-256 - run: shasum -a 256 ${{ matrix.platform.name }} - - name: Publish GitHub release uses: softprops/action-gh-release@v2 with: - draft: true files: "elgato-light*"