[appveyor] elsif ps

This commit is contained in:
mzwiessele 2016-07-30 09:21:36 +01:00
parent 8f09aa2f87
commit 1fd5372205

View file

@ -65,11 +65,14 @@ deploy_script:
- echo repository:https://testpypi.python.org/pypi >> %USERPROFILE%\\.pypirc
- echo username:maxz >> %USERPROFILE%\\.pypirc
- ps: >-
switch ($env:APPVEYOR_REPO_BRANCH)
{
devel {twine upload -r test -p %pip_access% dist/*}
deploy {twine upload -p %pip_access% dist/*}
default {echo not deploying on other branches}
if ($env:APPVEYOR_REPO_BRANCH -eq 'devel') {
twine upload -r test -p %pip_access% dist/*
}
elseif ($env:APPVEYOR_REPO_BRANCH -eq 'deploy') {
twine upload -p %pip_access% dist/*
}
else {
echo not deploying on other branches
}
# deploy: