Skip to content

Commit

Permalink
fix: added logging to see which files we are processing during push t…
Browse files Browse the repository at this point in the history
…o nuget (#399)

Co-authored-by: Pim Simons <[email protected]>
  • Loading branch information
pim-simons and pim-simons authored Jul 7, 2023
1 parent 6b10f58 commit 22d99ec
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions build/psgallery-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -152,8 +152,13 @@ stages:
checkLatest: true
- powershell: |
New-Item log.txt
Get-ChildItem -Path $env:ARTIFACT_DIR -Filter *.nupkg -Recurse |
% { & "nuget" push $_.FullName -Source $(Source) -ApiKey $(NuGet.ApiKey) -SkipDuplicate | Out-File log.txt -Append }
$nugetPackageFiles = Get-ChildItem -Path $env:ARTIFACT_DIR -Filter *.nupkg -Recurse
foreach ($nugetPackageFile in $nugetPackageFiles) {
$fullFileName = $nugetPackageFile.FullName
Write-Host "Processing '$fullFileName'"
% { & "nuget" push $fullFileName -Source $(Source) -ApiKey $(NuGet.ApiKey) -SkipDuplicate | Out-File log.txt -Append }
}
$log = Get-Content log.txt
cat $log
Expand Down

0 comments on commit 22d99ec

Please sign in to comment.