refactor(build): changes to show more details when we run the build stuff
This commit is contained in:
@@ -117,18 +117,38 @@ function Update-BuildNumber {
|
||||
dotnet publish -c Release -o ./publish
|
||||
|
||||
Pop-Location
|
||||
|
||||
try {
|
||||
Update-BuildNumber
|
||||
|
||||
|
||||
Write-Host "Zipping up the release"
|
||||
npm run release:createZip
|
||||
|
||||
$choice = Read-Host "Are we going to create a release? y/N"
|
||||
|
||||
if ($choice -eq "y" -or $choice -eq "Y") {
|
||||
npm run release:gitea $version
|
||||
npm run release:publish
|
||||
npm run createZip
|
||||
if ($LASTEXITCODE -ne 0) {
|
||||
throw "Failed to create release zip"
|
||||
}
|
||||
|
||||
$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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user