Skip to content

Commit

Permalink
fix: generate and include shas for each archive
Browse files Browse the repository at this point in the history
  • Loading branch information
wassimk committed Jun 8, 2024
1 parent 7b57784 commit e2ba84b
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 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,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*"

0 comments on commit e2ba84b

Please sign in to comment.