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 3b2c12b
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name: release
on:
release:
types: [created]
push:

jobs:
release:
Expand Down Expand Up @@ -31,12 +32,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,15 +47,15 @@ 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:
Expand Down

0 comments on commit 3b2c12b

Please sign in to comment.