From a4c8fe306589db37121063582d8f6a6f8ecd911e Mon Sep 17 00:00:00 2001
From: Lukas Holecek <hluk@email.cz>
Date: Wed, 16 Dec 2020 16:53:58 +0100
Subject: [PATCH] Appveyor: Push portable zip artifact even if tests fail

---
 appveyor.yml                   | 3 ---
 utils/appveyor/after_build.bat | 1 +
 2 files changed, 1 insertion(+), 3 deletions(-)

diff --git a/appveyor.yml b/appveyor.yml
index 41ed28976..5b4e9d552 100644
--- a/appveyor.yml
+++ b/appveyor.yml
@@ -41,9 +41,6 @@ after_build:
 - utils\appveyor\after_build.bat
 
 artifacts:
-- path: 'copyq*.zip'
-  name: CopyQ Portable
-
 - path: 'copyq-*-setup.exe'
   name: CopyQ Setup
 
diff --git a/utils/appveyor/after_build.bat b/utils/appveyor/after_build.bat
index fd0ff7220..a3d3c9f01 100644
--- a/utils/appveyor/after_build.bat
+++ b/utils/appveyor/after_build.bat
@@ -42,6 +42,7 @@ xcopy /F "%OPENSSL_PATH%\%LIBSSL%" "%Destination%" || goto :error
   "%Executable%" || goto :error
 
 7z a "%Name%.zip" -r "%Destination%" || goto :error
+appveyor PushArtifact "%Name%.zip" -DeploymentName "CopyQ Portable" || goto :error
 
 choco install -y InnoSetup || goto :error
 "C:\ProgramData\chocolatey\bin\ISCC.exe" "/O%APPVEYOR_BUILD_FOLDER%" "/DAppVersion=%AppVersion%" "/DRoot=%Destination%" "/DSource=%Source%" "%Source%\Shared\copyq.iss" || goto :error
-- 
GitLab