Skip to content

Commit 945fb19

Browse files
committed
chore(release): add file sha256
Signed-off-by: Kevin Cui <bh@bugs.cc>
1 parent d2c870c commit 945fb19

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.github/workflows/release.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,12 +57,21 @@ jobs:
5757
signtool.exe sign /sha1 ${{ secrets.SM_CODE_SIGNING_CERT_SHA1_HASH }} /tr http://timestamp.digicert.com /td SHA256 /fd SHA256 ./out/ovm-amd64.exe
5858
signtool.exe verify /v /pa ./out/ovm-amd64.exe
5959
60+
- name: Gen Release Notes
61+
run: |
62+
$sha256 = (Get-FileHash -Path ./out/ovm-amd64.exe -Algorithm SHA256).Hash.ToLower()
63+
64+
Set-Content -Path ./release_notes.md -Value '```'
65+
Add-Content -Path ./release_notes.md -Value "$sha256 ovm-amd64.exe"
66+
Add-Content -Path ./release_notes.md -Value '```'
67+
6068
- name: Release
6169
uses: softprops/action-gh-release@de2c0eb89ae2a093876385947365aca7b0e5f844 # v0.1.15
6270
with:
6371
files: |
6472
out/*
6573
generate_release_notes: true
74+
body_path: ./release_notes.md
6675
draft: false
6776
prerelease: false
6877
fail_on_unmatched_files: true

0 commit comments

Comments
 (0)