From c007e58d5938632cbc93015d4dea3d657ce71520 Mon Sep 17 00:00:00 2001 From: Yanic Lemire Date: Wed, 18 Oct 2023 22:08:47 -0400 Subject: [PATCH] Update wpf-release.yml --- .github/workflows/wpf-release.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/wpf-release.yml b/.github/workflows/wpf-release.yml index dc9455c1a..a7f9293c1 100644 --- a/.github/workflows/wpf-release.yml +++ b/.github/workflows/wpf-release.yml @@ -43,7 +43,9 @@ jobs: # Parse tag into a three-number version. $version = $tag.Split('-')[0].TrimStart('v') - $version = "$version.0" + if ($version.Split('.').Count <= 3) { + $version = "$version.0" + } Write-Output "Version: $version" # Clean output directory. @@ -51,6 +53,7 @@ jobs: if (Test-Path $publishDirectory) { Remove-Item -Path $publishDirectory -Recurse } + Write-Output "Publish directory: $publishDirectory" # Publish the application. Push-Location $projectDirectory