Skip to content

Commit

Permalink
Fix CI uploading NuGet (#294)
Browse files Browse the repository at this point in the history
  • Loading branch information
BernieWhite authored Oct 3, 2019
1 parent fd25ce1 commit 137abbd
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .azure-pipelines/azure-pipelines.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -145,12 +145,12 @@ stages:
targetPath: out/modules/PSRule
condition: and(succeeded(), eq(variables['publish'], 'true'))

- task: PublishPipelineArtifact@1
displayName: 'Publish module package'
inputs:
artifactName: PSRule.nupkg
targetPath: out/nuget/PSRule.$(Build.BuildNumber).nupkg
condition: and(succeeded(), eq(variables['publish'], 'true'))
# - task: PublishPipelineArtifact@1
# displayName: 'Publish module package'
# inputs:
# artifactName: PSRule.nupkg
# targetPath: out/nuget/PSRule.$(Build.BuildNumber).nupkg
# condition: and(succeeded(), eq(variables['publish'], 'true'))

# Release pipeline
- stage: Release
Expand Down
1 change: 1 addition & 0 deletions pipeline.build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,7 @@ task PackageModule {
try {
Register-PSRepository -Name 'OutPath' -SourceLocation $nugetPath -PublishLocation $nugetPath;
Publish-Module -Path $modulePath -NuGetApiKey na -Repository 'OutPath';
Out-Host -InputObject "`#`#vso[artifact.upload containerfolder=PSRule.nupkg;artifactname=PSRule.nupkg;]$nugetPath"
}
finally {
Unregister-PSRepository -Name 'OutPath';
Expand Down

0 comments on commit 137abbd

Please sign in to comment.