Packager/publish.ps1
azures04 aa569bcfaf Enable nullable and implicit usings, add publish script
Updated AzuresPackager.csproj to enable nullable reference types and implicit usings, set a custom package output path, corrected repository URL casing, and added repository type. Added a new PowerShell script (publish.ps1) to automate cleaning, building, restoring, packing, and publishing the NuGet package.
2026-01-27 00:11:51 +01:00

17 lines
546 B
PowerShell

clear
$version = "0.0.1"
Write-Host "`r`n[Task 1/4] Cleaning project..." -ForegroundColor Magenta
dotnet clean
Write-Host "`r`n[Task 2/4] Building project..." -ForegroundColor Magenta
dotnet build
Write-Host "`r`n[Task 3/4] Restoring project..." -ForegroundColor Magenta
dotnet restore
Write-Host "`r`n[Task 4/4] Packing project..." -ForegroundColor Magenta
dotnet pack --version $version
Write-Host "`r`n[Task 5/4] Publishing project..." -ForegroundColor Magenta
dotnet nuget push --source AzuresGitea "nupkg\AzuresPackager.$version.nupkg"