diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 42bf5e2..2e4fed2 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -2,7 +2,7 @@ on: release: types: - published - + jobs: build: runs-on: windows-latest @@ -10,7 +10,7 @@ jobs: - uses: actions/checkout@v4 - uses: xmake-io/github-action-setup-xmake@v1 - + - run: | xmake repo -u @@ -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