Skip to content

Commit

Permalink
ci: add sha256sum
Browse files Browse the repository at this point in the history
  • Loading branch information
ShrBox committed Jan 13, 2024
1 parent 33020c0 commit 4a07b66
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@ on:
release:
types:
- published

jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4

- uses: xmake-io/github-action-setup-xmake@v1

- run: |
xmake repo -u
Expand Down Expand Up @@ -49,8 +49,17 @@ jobs:
zip -r ../${{ github.event.repository.name }}-windows-x64.zip *
cd ..
- name: Calculate SHA256
id: calculate-sha256
run: |
echo release=$(sha256sum ${{ github.event.repository.name }}-windows-x64.zip | awk '{print $1}') >> $GITHUB_OUTPUT
- uses: softprops/action-gh-release@v1
with:
append_body: true
body: |
| File | SHA256 |
| ---- | ------ |
| ${{ github.event.repository.name }}-windows-x64.zip | ${{ steps.calculate-sha256.outputs.release }} |
files: |
${{ github.event.repository.name }}-windows-x64.zip

0 comments on commit 4a07b66

Please sign in to comment.