From a4ca5d2b64d1fad955ab4113495ef231394f5394 Mon Sep 17 00:00:00 2001 From: Chris Johnston Date: Fri, 28 Sep 2018 18:30:20 -0700 Subject: [PATCH] Fix deploy conditions in CI script The deploy conditions had been using a powershell-only variable, and not a environment variable. This meant that the deployment failed on both Windows and Linux (expected only on Linux). --- appveyor.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/appveyor.yml b/appveyor.yml index 0c0c7b102..3dbf57b15 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -25,8 +25,11 @@ init: build_script: - ps: >- + # Debug the values of CI_WINDOWS and CI_LINUX + Write-Output "Windows: $Env:CI_WINDOWS Linux: $Env:CI_LINUX" if ($isLinux) { + # AppVeyor Linux images do not have appveyor-retry, which retries the commands a few times # until the command exits with code 0. # So, this is done with a short script. @@ -83,7 +86,7 @@ deploy: symbol_server: https://www.myget.org/F/discord-net/symbols/api/v2/package on: branch: dev - isWindows: True + CI_WINDOWS: true - provider: NuGet server: https://www.myget.org/F/rogueexception/api/v2/package api_key: @@ -91,4 +94,4 @@ deploy: symbol_server: https://www.myget.org/F/rogueexception/symbols/api/v2/package on: branch: dev - isWindows: True + CI_WINDOWS: true