Browse Source

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).
pull/1157/head
Chris Johnston GitHub 7 years ago
parent
commit
a4ca5d2b64
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 2 deletions
  1. +5
    -2
      appveyor.yml

+ 5
- 2
appveyor.yml View File

@@ -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

Loading…
Cancel
Save