Skip to content

Commit 597be65

Browse files
committed
few more fixes as 'v' in front of a version cannot be converted to System.Version
1 parent c75e83a commit 597be65

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

.github/workflows/publish.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,10 @@ jobs:
3636
exit 1
3737
}
3838
39-
$isPrerelease = "${{ github.event.release.prerelease }}" -eq "true"
40-
$dateSuffix = Get-Date -Format "yyyyMMdd-HHmm"
41-
$newVersion = if ($isPrerelease) { "$tag-prerelease-$dateSuffix" } else { $tag }
39+
# Удаляем префикс v, если он есть
40+
$tag = $tag -replace '^v', ''
41+
42+
$newVersion = $tag
4243
4344
$psd1 = Get-Item ./PSGraph/PSQuickGraph.psd1
4445
if (-not $psd1) {

0 commit comments

Comments
 (0)