From 5d30a56b516bf6fa9d02e3bfe0d391a340be847d Mon Sep 17 00:00:00 2001 From: shenleban tongying Date: Wed, 10 Jul 2024 23:41:16 -0400 Subject: [PATCH] repair release-windows-vcpkg-cmake.yml --- .github/workflows/release-windows-vcpkg-cmake.yml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/release-windows-vcpkg-cmake.yml b/.github/workflows/release-windows-vcpkg-cmake.yml index 00b986ef..26bcacde 100644 --- a/.github/workflows/release-windows-vcpkg-cmake.yml +++ b/.github/workflows/release-windows-vcpkg-cmake.yml @@ -143,8 +143,8 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | $tagName = "v$env:version-$env:versionSuffix.$(git rev-parse --short=8 HEAD)" - - $changeNotes = " + + Add-Content -Path ./change_note.txt -Value " [Install instructions for Windows, macOS and Linux](https://xiaoyifang.github.io/goldendict-ng/install/). Filename pattern: GoldenDict-ng-[version]-[Qt version]-[system name]-... @@ -154,16 +154,18 @@ jobs: Based on branch: ${{github.ref_name}} #### Changes + " + Add-Content -Path ./change_note.txt -Value @' ${{steps.build_changelog.outputs.changelog}} - " + '@ $tagExist = gh api --silent "repos/:owner/:repo/git/refs/tags/${{github.ref_name}}" if (-not $?) { if ($env:prerelease -eq "true") { - gh release create ${tagName} --target ${{github.ref_name}} --notes "${changeNotes}" --latest=false --prerelease + gh release create ${tagName} --target ${{github.ref_name}} --notes-file=./change_note.txt --latest=false --prerelease } else { - gh release create ${tagName} --target ${{github.ref_name}} --notes "${changeNotes}" --latest=true + gh release create ${tagName} --target ${{github.ref_name}} --notes-file=./change_note.txt --latest=true } }