Skip to content

Commit 663a338

Browse files
committed
(GH-29) Fixing artifact upload
- Wrong path was being used after a change to the output exe
1 parent 2b1d4f9 commit 663a338

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

BuildScripts/default.ps1

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -547,9 +547,9 @@ Task -Name BuildSolution -Depends __RemoveBuildArtifactsDirectory, __VerifyConfi
547547
}
548548

549549
if(isAppVeyor) {
550-
$expectedMsiFile = Join-Path -Path $buildArtifactsDirectory -ChildPath "GitHubReleaseManager.exe"
551-
if(Test-Path $expectedMsiFile) {
552-
Push-AppveyorArtifact $expectedMsiFile;
550+
$expectedExeFile = Join-Path -Path $buildArtifactsDirectory -ChildPath "GitHubReleaseManager.Cli.exe"
551+
if(Test-Path $expectedExeFile) {
552+
Push-AppveyorArtifact $expectedExeFile;
553553
}
554554
}
555555
}
@@ -597,11 +597,10 @@ Task -Name PackageChocolatey -Description "Packs the module and example package"
597597
.$nugetExe pack "$sourceDirectory\..\Packaging\nuget\GitHubReleaseManager.Cli.nuspec" -OutputDirectory "$buildArtifactsDirectory" -NoPackageAnalysis -version $script:version
598598
.$nugetExe pack "$sourceDirectory\..\Packaging\nuget\GitHubReleaseManager.nuspec" -OutputDirectory "$buildArtifactsDirectory" -NoPackageAnalysis -version $script:version
599599

600-
if(isAppVeyor) {
601-
$expectedNupkgFile = Join-Path -Path $buildArtifactsDirectory -ChildPath "GitHubReleaseManager*.nupkg"
602-
if(Test-Path $expectedNupkgFile) {
603-
Push-AppveyorArtifact ($expectedNupkgFile | Resolve-Path).Path;
604-
}
600+
if(isAppVeyor) {
601+
Get-ChildItem $buildArtifactsDirectory -Filter *.nupkg | Foreach-Object {
602+
Push-AppveyorArtifact ($_ | Resolve-Path).Path;
603+
}
605604
}
606605
}
607606

0 commit comments

Comments
 (0)