Skip to content

Commit

Permalink
fix: get artifacts uploading to release again
Browse files Browse the repository at this point in the history
  • Loading branch information
wassimk committed Jun 8, 2024
1 parent 3ac21f3 commit 33b8b5d
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 }}-*

0 comments on commit 33b8b5d

Please sign in to comment.