Skip to content

Commit

Permalink
Fix version in release
Browse files Browse the repository at this point in the history
  • Loading branch information
piotrmacha committed Jun 2, 2024
1 parent 5f66e51 commit e1bc888
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit e1bc888

Please sign in to comment.