From 4f17e15ac476f77df65492e206dd5c4d1a33d768 Mon Sep 17 00:00:00 2001 From: ShrBox Date: Sun, 4 Feb 2024 16:34:04 +0800 Subject: [PATCH] ci: update release --- .github/workflows/release.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 42bf5e2..c1b6451 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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