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