diff --git a/appveyor.yml b/appveyor.yml index 96b0cb8..2ef4c3a 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -42,8 +42,9 @@ after_test: # Upload to pypi. # More precisely. Upload pypi the master builds, and to test-pypi any other builds. # See more at https://stackoverflow.com/a/33662275/2506522 - - git branch | find "* master" > NUL & IF ERRORLEVEL 1 ( - twine upload -r testpypi dist\\wexpect*.tar.gz - ) ELSE ( - twine upload -r pypi dist\\wexpect*.tar.gz ) + - IF %APPVEYOR_REPO_BRANCH%==master ( + twine upload -r pypi dist\\wexpect*.tar.gz + ) ELSE ( + twine upload -r testpypi dist\\wexpect*.tar.gz + ) \ No newline at end of file