From e1bc8886c26c47006ca17617dbb71bcd134f9039 Mon Sep 17 00:00:00 2001 From: Piotr Macha Date: Sun, 2 Jun 2024 02:39:05 +0200 Subject: [PATCH] Fix version in release --- .github/workflows/release.yaml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 9e79ca2..b1293a4 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -32,10 +32,11 @@ jobs: function GenerateReleaseNotes { param ( [string]$Build, - [string]$Notes + [string]$Notes, + [string]$Toolkit ) Expand-Archive -Path $Build-${{ inputs.version }}.zip -DestinationPath $Build-${{ inputs.version }} - $Notes += "# UnionAPI (MSVC v142)`n`n" + $Notes += "# UnionAPI (MSVC $Toolkit)`n`n" $sha256 = Get-Content -Path $Build-${{ inputs.version }}.zip.sha256 $Notes += "Archive SHA256: $sha256`n`n" $buildTime = Get-Content -Path $Build-${{ inputs.version }}/build-time.txt @@ -52,8 +53,8 @@ jobs: $Notes += "`n" return $Notes; } - $notes = GenerateReleaseNotes -Build UnionAPI-v142-windows-2022 -Notes "" - $notes = GenerateReleaseNotes -Build UnionAPI-v143-windows-2022 -Notes $notes + $notes = GenerateReleaseNotes -Build UnionAPI-v142-windows-2022 -Notes "" -Toolkit "v142" + $notes = GenerateReleaseNotes -Build UnionAPI-v143-windows-2022 -Notes $notes -Toolkit "v143" Set-Content -Path release-notes.md -Value $notes Copy-Item UnionAPI-v142-windows-2022-${{ inputs.version }}.zip UnionAPI-v142-windows-2022.zip Copy-Item UnionAPI-v142-windows-2022-${{ inputs.version }}.zip.sha256 UnionAPI-v142-windows-2022.zip.sha256