choco only on prod deploys

This commit is contained in:
Kyle Spearrin 2019-03-13 00:25:23 -04:00
parent ee11b8d835
commit 5da12e2f9c
1 changed files with 1 additions and 1 deletions

View File

@ -39,7 +39,7 @@ before_build:
echo "$SNAP_TOKEN" | snapcraft login --with - echo "$SNAP_TOKEN" | snapcraft login --with -
fi fi
- ps: | - ps: |
if($isWindows -and $env:CHOCO_API_KEY -ne $null -and $env:PROD_DEPLOY -eq "false") { if($isWindows -and $env:CHOCO_API_KEY -ne $null -and $env:PROD_DEPLOY -eq "true") {
choco apikey --key $env:CHOCO_API_KEY --source https://push.chocolatey.org/ choco apikey --key $env:CHOCO_API_KEY --source https://push.chocolatey.org/
} }