Skip to content

Commit

Permalink
Publish BuildArtifacts in any build matrix configuration (including D…
Browse files Browse the repository at this point in the history
…ebug+Release) but only publish installer in Release configuration (as expected in ISS).
  • Loading branch information
bchavez committed Oct 15, 2018
1 parent af55ebd commit 34c976f
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 34c976f

Please sign in to comment.