@@ -4,8 +4,14 @@ Push-Location $PSScriptRoot/../
44
55$ErrorActionPreference = ' Stop'
66
7+ Write-Host " Run Number: $env: CI_BUILD_NUMBER_BASE "
8+ Write-Host " Target Branch: $env: CI_TARGET_BRANCH "
9+ Write-Host " Published: $env: CI_PUBLISH "
10+
711$version = Get-SemVer
812
13+ Write-Output " Building version $version "
14+
915$framework = ' net9.0'
1016$windowsTfmSuffix = ' -windows'
1117
@@ -65,7 +71,9 @@ function Publish-Archives($version)
6571}
6672
6773function Publish-DotNetTool ($version )
68- {
74+ {
75+ Write-Output " Building dotnet tool"
76+
6977 # Tool packages have to target a single non-platform-specific TFM; doing this here is cleaner than attempting it in the CSPROJ directly
7078 dotnet pack ./ src/ SeqCli/ SeqCli.csproj - c Release -- output ./ artifacts / p:VersionPrefix= $version / p:TargetFrameworks= $framework
7179 if ($LASTEXITCODE -ne 0 ) { throw " Build failed" }
@@ -84,7 +92,7 @@ function Upload-NugetPackages
8492 # GitHub Actions will only supply this to branch builds and not PRs. We publish
8593 # builds from any branch this action targets (i.e. main and dev).
8694
87- Write-Output " build: Publishing NuGet packages"
95+ Write-Output " Publishing NuGet packages"
8896
8997 foreach ($nupkg in Get-ChildItem artifacts/* .nupkg) {
9098 & dotnet nuget push - k $env: NUGET_API_KEY - s https:// api.nuget.org/ v3/ index.json " $nupkg "
@@ -94,7 +102,7 @@ function Upload-NugetPackages
94102
95103function Upload-GitHubRelease ($version )
96104{
97- Write-Output " build: Creating release for version $version "
105+ Write-Output " Creating release for version $version "
98106
99107 iex " gh release create v$version --title v$version --generate-notes $ ( get-item ./ artifacts/* ) "
100108}
@@ -113,8 +121,6 @@ function Create-GlobalJson
113121 cp ./ ci.global.json global.json
114122}
115123
116- Write-Output " Building version $version "
117-
118124$env: Path = " $pwd /.dotnetcli;$env: Path "
119125
120126Clean - Output
0 commit comments