From 1eb47cb856731181f47ce1c0804674c3fd99f301 Mon Sep 17 00:00:00 2001 From: Pdone <617941447@qq.com> Date: Tue, 18 Jun 2024 12:55:22 +0800 Subject: [PATCH] Update build-and-release.yml --- .github/workflows/build-and-release.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-and-release.yml b/.github/workflows/build-and-release.yml index 05e5f6b..1bd7149 100644 --- a/.github/workflows/build-and-release.yml +++ b/.github/workflows/build-and-release.yml @@ -22,8 +22,8 @@ jobs: run: | msbuild FreeControl.sln /p:Configuration=Release /p:Platform="Any CPU" /p:OutputPath="../output" $filePath = "output/Freecontrol.exe" - $sha256Hash = (Get-FileHash -Algorithm SHA256 -Path $filePath).Hash - $sha256Hash > "output/SHA256" + $sha256Hash = (Get-FileHash -Algorithm SHA256 -Path $filePath).Hash.ToLower() + "``sha256: $sha256Hash``" > "output/SHA256" - name: Release uses: softprops/action-gh-release@v2