Skip to content

Commit e3df990

Browse files
committed
Finally have this building -- added a simple push script.
1 parent 5f019c4 commit e3df990

File tree

3 files changed

+43
-2
lines changed

3 files changed

+43
-2
lines changed

Directory.Build.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
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>

push.ps1

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
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

src/Kestrel.Certificates/McMaster.AspNetCore.Kestrel.Certificates.csproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
<Description>A class library for managing HTTPS certificates with ASP.NET Core.
99

1010
This 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>

0 commit comments

Comments
 (0)