Skip to content

Commit

Permalink
Update wpf-release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
leMicin authored Oct 19, 2023
1 parent 88b61c0 commit c007e58
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/wpf-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,17 @@ 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.
$publishDirectory = "$projectDirectory/bin/publish"
if (Test-Path $publishDirectory) {
Remove-Item -Path $publishDirectory -Recurse
}
Write-Output "Publish directory: $publishDirectory"
# Publish the application.
Push-Location $projectDirectory
Expand Down

0 comments on commit c007e58

Please sign in to comment.