log into choco via apikey
This commit is contained in:
parent
46f3902d0f
commit
ee11b8d835
10
appveyor.yml
10
appveyor.yml
|
@ -1,5 +1,5 @@
|
||||||
image:
|
image:
|
||||||
#- Visual Studio 2017
|
- Visual Studio 2017
|
||||||
- Ubuntu1804
|
- Ubuntu1804
|
||||||
|
|
||||||
branches:
|
branches:
|
||||||
|
@ -34,12 +34,14 @@ before_build:
|
||||||
- node --version
|
- node --version
|
||||||
- npm --version
|
- npm --version
|
||||||
- sh: |
|
- sh: |
|
||||||
echo "sh PROD_DEPLOY ${PROD_DEPLOY}"
|
|
||||||
if [ "${SNAP_TOKEN}" != "" -a "${PROD_DEPLOY}" == "true" ]
|
if [ "${SNAP_TOKEN}" != "" -a "${PROD_DEPLOY}" == "true" ]
|
||||||
then
|
then
|
||||||
echo "$SNAP_TOKEN" | snapcraft login --with -
|
echo "$SNAP_TOKEN" | snapcraft login --with -
|
||||||
fi
|
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:
|
build_script:
|
||||||
- npm install
|
- npm install
|
||||||
|
@ -73,7 +75,7 @@ after_build:
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
- sh: |
|
- sh: |
|
||||||
if [ "${SNAP_TOKEN}" != "" ]
|
if [ "${SNAP_TOKEN}" != "" -a "${PROD_DEPLOY}" == "true" ]
|
||||||
then
|
then
|
||||||
snapcraft logout
|
snapcraft logout
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue