File tree Expand file tree Collapse file tree 3 files changed +43
-2
lines changed
Expand file tree Collapse file tree 3 files changed +43
-2
lines changed Original file line number Diff line number Diff line change 3535
3636 <PropertyGroup >
3737 <VersionPrefix >1.3.4</VersionPrefix >
38- <VersionSuffix >beta.4 </VersionSuffix >
38+ <VersionSuffix >beta.5 </VersionSuffix >
3939 <IncludePreReleaseLabelInPackageVersion Condition =" '$(IS_STABLE_BUILD)' != 'true'" >true</IncludePreReleaseLabelInPackageVersion >
4040 <BuildNumber Condition =" '$(BuildNumber)' == '' " >$([MSBuild]::ValueOrDefault($(BUILD_NUMBER), 0))</BuildNumber >
4141 <VersionSuffix >$(VersionSuffix).$(BuildNumber)</VersionSuffix >
Original file line number Diff line number Diff line change 1+ param (
2+ [Parameter (Mandatory = $true )]
3+ [string ]$ApiKey
4+ )
5+
6+ $ErrorActionPreference = " Stop"
7+
8+ $artifactsDir = Join-Path $PSScriptRoot " artifacts"
9+
10+ if (-not (Test-Path $artifactsDir )) {
11+ Write-Error " Artifacts directory not found at: $artifactsDir "
12+ exit 1
13+ }
14+
15+ $packages = Get-ChildItem - Path $artifactsDir - Filter " *.nupkg" - Recurse
16+
17+ if ($packages.Count -eq 0 ) {
18+ Write-Warning " No NuGet packages found in $artifactsDir "
19+ exit 0
20+ }
21+
22+ Write-Host " Found $ ( $packages.Count ) package(s) to push:" - ForegroundColor Green
23+ $packages | ForEach-Object { Write-Host " - $ ( $_.Name ) " }
24+ Write-Host " "
25+
26+ foreach ($package in $packages ) {
27+ Write-Host " Pushing $ ( $package.Name ) ..." - ForegroundColor Cyan
28+
29+ dotnet nuget push $package.FullName `
30+ -- api- key $ApiKey `
31+ -- source https:// proget.captiveaire.com / nuget/ CaptiveAire
32+
33+ if ($LASTEXITCODE -ne 0 ) {
34+ Write-Error " Failed to push $ ( $package.Name ) "
35+ exit $LASTEXITCODE
36+ }
37+
38+ Write-Host " Successfully pushed $ ( $package.Name ) " - ForegroundColor Green
39+ Write-Host " "
40+ }
41+
42+ Write-Host " All packages pushed successfully!" - ForegroundColor Green
Original file line number Diff line number Diff line change 88 <Description >A class library for managing HTTPS certificates with ASP.NET Core.
99
1010This library includes API for dynamically selecting which HTTPS certificate to use in Kestrel.</Description >
11- <PackageVersion Condition =" '$(IncludePreReleaseLabelInPackageVersion)' == 'true'" >$(PackageVersion)-$(VersionSuffix)</PackageVersion >
1211 </PropertyGroup >
1312
1413 <ItemGroup >
You can’t perform that action at this time.
0 commit comments