1
0
mirror of https://github.com/tw93/Mole.git synced 2026-03-23 11:20:07 +00:00

fix(windows): stabilize install and prerelease versioning

This commit is contained in:
Tw93
2026-03-22 14:39:25 +08:00
parent 05fbc007d5
commit 16c3ea9867
13 changed files with 211 additions and 54 deletions

View File

@@ -47,13 +47,11 @@ jobs:
$version = "${{ github.ref }}" -replace '^refs/tags/[Vv]', ''
$version = $version -replace '-windows$', ''
} else {
$content = Get-Content mole.ps1 -Raw
if ($content -match '\$script:MOLE_VER\s*=\s*"([^"]+)"') {
$version = $Matches[1]
} else {
Write-Error "Could not detect version"
exit 1
}
$version = (Get-Content VERSION -Raw).Trim()
}
if (-not $version) {
Write-Error "Could not detect version"
exit 1
}
Write-Host "Version: $version"
"VERSION=$version" >> $env:GITHUB_OUTPUT