chore(CI): fix packages version error for windows

This commit is contained in:
zhanghongtong 2021-04-24 20:27:09 +08:00 committed by Zaiming (Stone) Shi
parent d61b100cc9
commit 5154a00252
1 changed files with 1 additions and 1 deletions

View File

@ -83,7 +83,7 @@ jobs:
$version = $( "${{ github.ref }}" -replace "^(.*)/(.*)/" )
if ($version -match "^v[0-9]+\.[0-9]+(\.[0-9]+)?") {
$regex = "[0-9]+\.[0-9]+(-alpha|-beta|-rc)?\.[0-9]"
$regex = "[0-9]+\.[0-9]+(-alpha|-beta|-rc)?\.[0-9]+"
$pkg_name = "${{ matrix.profile }}-windows-$([regex]::matches($version, $regex).value).zip"
}
else {