From 34c976f72374f97eb4f11914ff4c19c6cd5d27f5 Mon Sep 17 00:00:00 2001 From: bchavez Date: Mon, 15 Oct 2018 11:32:59 -0700 Subject: [PATCH] Publish BuildArtifacts in any build matrix configuration (including Debug+Release) but only publish installer in Release configuration (as expected in ISS). --- appveyor.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/appveyor.yml b/appveyor.yml index 3c2a6601..6e32fce9 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -43,12 +43,14 @@ build_script: after_build: - 7z a BuildArtifacts.zip install\* - ps: >- + # Publish Build Artifacts + $gitHash = $env:APPVEYOR_REPO_COMMIT.Substring(0, 8); + $zipFile = "freelan-binary-$env:platform-$gitHash.zip" + Push-AppveyorArtifact "BuildArtifacts.zip" -FileName $zipFile + + # Publish Installer artifact (but only in Release configuration) If ($env:Configuration -Match "Release") { scons -C packaging\windows --arch=%INSTALLER_BITS% - - $gitHash = $env:APPVEYOR_REPO_COMMIT.Substring(0, 8); - $zipFile = "freelan-binary-$env:platform-$gitHash.zip" - Push-AppveyorArtifact "BuildArtifacts.zip" -FileName $zipFile $setupFile = "freelan-setup-$env:platform-$gitHash.exe" $installerFile = Get-ChildItem -Path .\packaging\windows\ -Filter *.exe | Select-Object -First 1