diff --git a/.github/workflows/pack-all.yml b/.github/workflows/pack-all.yml index da017d89..6eae5b66 100644 --- a/.github/workflows/pack-all.yml +++ b/.github/workflows/pack-all.yml @@ -54,7 +54,7 @@ jobs: $xml = [Xml] (Get-Content .\Whisper.net\Whisper.net.csproj) $versionObject = $xml.Project.PropertyGroup.Version $version = "$versionObject".Trim() - $previewSuffix = if (${{ inputs.IsPreview }} -eq 'true') { '-${{ inputs.PreviewSuffix }}' } else { '' } + $previewSuffix = if ('${{ inputs.IsPreview }}' -eq 'true') { '-${{ inputs.PreviewSuffix }}' } else { '' } $previewVersion = "$version$previewSuffix" Import-Module ./windows-scripts.ps1 PackAll -Version $previewVersion diff --git a/runtimes/Whisper.net.Runtime.nuspec b/runtimes/Whisper.net.Runtime.nuspec index 5f77fdd8..a84b6820 100644 --- a/runtimes/Whisper.net.Runtime.nuspec +++ b/runtimes/Whisper.net.Runtime.nuspec @@ -16,5 +16,6 @@ + diff --git a/windows-scripts.ps1 b/windows-scripts.ps1 index 48958f46..a455f375 100644 --- a/windows-scripts.ps1 +++ b/windows-scripts.ps1 @@ -160,5 +160,5 @@ function PackAll([Parameter(Mandatory = $true)] [string]$Version) { nuget pack runtimes/Whisper.net.Runtime.Vulkan.nuspec -Version $Version -OutputDirectory ./nupkgs nuget pack runtimes/Whisper.net.Runtime.OpenVino.nuspec -Version $Version -OutputDirectory ./nupkgs nuget pack runtimes/Whisper.net.Runtime.NoAvx.nuspec -Version $Version -OutputDirectory ./nupkgs - nuget pack runtimes/Whisper.net.AllRutimes.nuspec -Version $Version -OutputDirectory ./nupkgs + nuget pack runtimes/Whisper.net.AllRuntimes.nuspec -Version $Version -OutputDirectory ./nupkgs }