From ad0aa669a7c61d6b47647be435365d41487fab8e Mon Sep 17 00:00:00 2001 From: Christian Kadluba <10721825+ckadluba@users.noreply.github.com> Date: Sat, 19 Oct 2024 00:51:55 +0200 Subject: [PATCH] Fixed perftest bug release.yml --- .github/workflows/release.yml | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index abebc5f3..30146df1 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -55,27 +55,19 @@ jobs: $nupkgFile = Get-ChildItem -Path "artifacts/$baseFileName*.nupkg" | Select-Object -First 1 $snupkgFile = Get-ChildItem -Path "artifacts/$baseFileName*.snupkg" | Select-Object -First 1 - $perfReportSinkFile = Get-ChildItem -Path "artifacts/perftests/Serilog.Sinks.MSSqlServer.PerformanceTests.SinkQuickBenchmarks-report.csv" ` - | Select-Object -First 1 - $perfReportAuditSinkFile = Get-ChildItem -Path "artifacts/perftests/Serilog.Sinks.MSSqlServer.PerformanceTests.AuditSinkQuickBenchmarks-report.csv" ` - | Select-Object -First 1 if (-not $nupkgFile) { Write-Error "nupkg file not found" ; exit 1 } if (-not $snupkgFile) { Write-Error "snupkg file not found" ; exit 1 } - if (-not $perfReportSinkFile) { Write-Error "Benchmark report for sink file not found" ; exit 1 } - if (-not $perfReportAuditSinkFile) { Write-Error "Benchmark report for audit sink file not found" ; exit 1 } $nupkgFilePath = $nupkgFile.FullName -replace '\\', '/' $snupkgFilePath = $snupkgFile.FullName -replace '\\', '/' - $perfReportSinkFilePath = $perfReportSinkFile.FullName -replace '\\', '/' - $perfReportAuditSinkFilePath = $perfReportAuditSinkFile.FullName -replace '\\', '/' - Write-Host "Uploading files: $nupkgFilePath, $snupkgFilePath $perfReportSinkFilePath $perfReportAuditSinkFilePath" + Write-Host "Uploading files: $nupkgFilePath, $snupkgFilePath" gh release create v${{ env.VERSION }} ` --title "v${{ env.VERSION }}" ` --notes "$(Get-Content last_commit_message.txt)" ` - $nupkgFilePath $snupkgFilePath $perfReportSinkFilePath $perfReportAuditSinkFilePath + $nupkgFilePath $snupkgFilePath shell: pwsh - name: Publish to nuget.org