1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-11-26 12:25:20 +01:00

log into choco via apikey

This commit is contained in:
Kyle Spearrin 2019-03-13 00:23:08 -04:00
parent 46f3902d0f
commit ee11b8d835

View File

@ -1,5 +1,5 @@
image:
#- Visual Studio 2017
- Visual Studio 2017
- Ubuntu1804
branches:
@ -34,12 +34,14 @@ before_build:
- node --version
- npm --version
- sh: |
echo "sh PROD_DEPLOY ${PROD_DEPLOY}"
if [ "${SNAP_TOKEN}" != "" -a "${PROD_DEPLOY}" == "true" ]
then
echo "$SNAP_TOKEN" | snapcraft login --with -
fi
- ps: echo "ps PROD_DEPLOY ${env:PROD_DEPLOY}"
- ps: |
if($isWindows -and $env:CHOCO_API_KEY -ne $null -and $env:PROD_DEPLOY -eq "false") {
choco apikey --key $env:CHOCO_API_KEY --source https://push.chocolatey.org/
}
build_script:
- npm install
@ -73,7 +75,7 @@ after_build:
}
}
- sh: |
if [ "${SNAP_TOKEN}" != "" ]
if [ "${SNAP_TOKEN}" != "" -a "${PROD_DEPLOY}" == "true" ]
then
snapcraft logout
fi