Skip to content

Commit

Permalink
chore: update w/ ps release verification (#375)
Browse files Browse the repository at this point in the history
  • Loading branch information
stijnmoreels authored Feb 21, 2023
1 parent 2136433 commit 281dd0c
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion build/psgallery-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,14 @@ stages:
displayName: 'Install NuGet'
- powershell: |
Get-ChildItem -Path $env:ARTIFACT_DIR -Filter *.nupkg -Recurse |
% { & "nuget" push $_.FullName -Source $(Source) -ApiKey $(NuGet.ApiKey) -SkipDuplicate }
% { & "nuget" push $_.FullName -Source $(Source) -ApiKey $(NuGet.ApiKey) -SkipDuplicate | Out-File log.txt -Append }
$log = Get-Content log.txt
cat $log
if ($log -match "BadRequest") {
echo "##vso[task.logissue type=error]Not all PowerShell modules were pushed correctly to the PowerShell Gallery"
exit 1
}
displayName: 'Push to PowerShell Gallery'
env:
ARTIFACT_DIR: '$(Build.ArtifactStagingDirectory)'

0 comments on commit 281dd0c

Please sign in to comment.