From 33b8b5d20ac1d5a9dca1fdccd6fb8d376a7ba257 Mon Sep 17 00:00:00 2001 From: Wassim Metallaoui Date: Sat, 8 Jun 2024 15:47:45 -0500 Subject: [PATCH] fix: get artifacts uploading to release again --- .github/workflows/release.yml | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index fd260a7..1bc8c3c 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,13 +46,18 @@ jobs: fi cd - - - name: Generate SHA-256 - run: shasum -a 256 > ${{ matrix.platform.name }}-sha.txt + - name: Generate SHA-256 for binary + run: shasum -a 256 > ${{ matrix.platform.bin }}-${{ matrix.platform.name }}-sha.txt - name: Publish release artifacts uses: actions/upload-artifact@v4 with: - name: elgato-light-${{ matrix.platform.os_name }} + name: ${{ matrix.platform.bin }}-${{ matrix.platform.os_name }} path: | - "elgato-light-*" - "*-sha.txt" + ${{ matrix.platform.bin }}-* + + - name: Publish GitHub release + uses: softprops/action-gh-release@v2 + with: + files: | + ${{ matrix.platform.bin }}-*