@@ -650,14 +650,9 @@ Task -Name PackageChocolatey -Description "Packs the module and example package"
650
650
if (isAppVeyor) {
651
651
Get-ChildItem $buildArtifactsDirectory - Filter * .nupkg | Foreach-Object {
652
652
$nugetPath = ($_ | Resolve-Path ).Path;
653
+ $convertedPath = Convert-Path $nugetPath ;
653
654
654
- if (Test-Path $nugetPath ) {
655
- Write-Output " Pushing artifact to AppVeyor..." ;
656
- Push-AppveyorArtifact (Convert-Path $nugetPath );
657
- Write-Output " AppVeyor Upload completed." ;
658
- } else {
659
- Write-Output " Unable to find path of artifact, so can't upload."
660
- }
655
+ Push-AppveyorArtifact (Convert-Path $convertedPath );
661
656
}
662
657
}
663
658
}
@@ -677,8 +672,11 @@ Task -Name DeployDevelopPackageToMyGet -Description "Takes the packaged Chocolat
677
672
Write-Output " Deploying to MyGet..."
678
673
679
674
exec {
680
- Get-ChildItem $buildArtifactsDirectory - Filter * .nupkg | Foreach-Object {
681
- & $nugetExe push $_ $env: MyGetDevelopApiKey - source $env: MyGetDevelopFeedUrl
675
+ Get-ChildItem $buildArtifactsDirectory - Filter * .nupkg | Foreach-Object {
676
+ $nugetPath = ($_ | Resolve-Path ).Path;
677
+ $convertedPath = Convert-Path $nugetPath ;
678
+
679
+ & $nugetExe push $convertedPath $env: MyGetDevelopApiKey - source $env: MyGetDevelopFeedUrl
682
680
}
683
681
}
684
682
@@ -697,8 +695,11 @@ Task -Name DeployMasterPackageToMyGet -Description "Takes the packaged Chocolate
697
695
Write-Output " Deploying to MyGet..."
698
696
699
697
exec {
700
- Get-ChildItem $buildArtifactsDirectory - Filter * .nupkg | Foreach-Object {
701
- & $nugetExe push $_ $env: MyGetMasterApiKey - source $env: MyGetMasterFeedUrl
698
+ Get-ChildItem $buildArtifactsDirectory - Filter * .nupkg | Foreach-Object {
699
+ $nugetPath = ($_ | Resolve-Path ).Path;
700
+ $convertedPath = Convert-Path $nugetPath ;
701
+
702
+ & $nugetExe push $convertedPath $env: MyGetMasterApiKey - source $env: MyGetMasterFeedUrl
702
703
}
703
704
}
704
705
@@ -717,11 +718,14 @@ Task -Name DeployPackageToChocolateyAndNuget -Description "Takes the packages an
717
718
Write-Output " Deploying to Chocolatey and Nuget..."
718
719
719
720
exec {
720
- Get-ChildItem $buildArtifactsDirectory - Filter * .nupkg | Foreach-Object {
721
+ Get-ChildItem $buildArtifactsDirectory - Filter * .nupkg | Foreach-Object {
722
+ $nugetPath = ($_ | Resolve-Path ).Path;
723
+ $convertedPath = Convert-Path $nugetPath ;
724
+
721
725
if (& _ -like ' *cli*' ) {
722
- & $nugetExe push $_ $env: ChocolateyApiKey - source $env: ChocolateyFeedUrl
726
+ & $nugetExe push $convertedPath $env: ChocolateyApiKey - source $env: ChocolateyFeedUrl
723
727
} else {
724
- & $nugetExe push $_ $env: NugetApiKey - source $env: NugetFeedUrl
728
+ & $nugetExe push $convertedPath $env: NugetApiKey - source $env: NugetFeedUrl
725
729
}
726
730
}
727
731
}
0 commit comments