refactor(build): changes to show more details when we run the build stuff

This commit is contained in:
2025-07-16 08:34:50 -05:00
parent 7a4840ef95
commit 5ed4a6c081

View File

@@ -117,18 +117,38 @@ function Update-BuildNumber {
dotnet publish -c Release -o ./publish dotnet publish -c Release -o ./publish
Pop-Location Pop-Location
try {
Update-BuildNumber Update-BuildNumber
Write-Host "Zipping up the release" Write-Host "Zipping up the release"
npm run release:createZip npm run createZip
if ($LASTEXITCODE -ne 0) {
$choice = Read-Host "Are we going to create a release? y/N" throw "Failed to create release zip"
if ($choice -eq "y" -or $choice -eq "Y") {
npm run release:gitea $version
npm run release:publish
} }
$choice = Read-Host "Are we going to create a release? y/N"
if ($choice -eq "y" -or $choice -eq "Y") {
Write-Host "Creating release..."
# This will:
# 1. Update version in package.json
# 2. Generate changelog
# 3. Create git tag
# 4. Push to remote
# 5. Create Gitea release via our script
npm run release
if ($LASTEXITCODE -ne 0) {
throw "Failed to create Gitea release"
}
}
} catch {
Write-Warning "Release process failed: $_"
exit 1
}
break break