refactor(build): changes to show more details when we run the build stuff
This commit is contained in:
@@ -117,16 +117,36 @@ 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) {
|
||||||
|
throw "Failed to create release zip"
|
||||||
|
}
|
||||||
|
|
||||||
$choice = Read-Host "Are we going to create a release? y/N"
|
$choice = Read-Host "Are we going to create a release? y/N"
|
||||||
|
|
||||||
if ($choice -eq "y" -or $choice -eq "Y") {
|
if ($choice -eq "y" -or $choice -eq "Y") {
|
||||||
npm run release:gitea $version
|
Write-Host "Creating release..."
|
||||||
npm run release:publish
|
|
||||||
|
# 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
|
||||||
|
|||||||
Reference in New Issue
Block a user