From 8c05f4344b3aeb8f06ffbe104bd82e24bc745062 Mon Sep 17 00:00:00 2001 From: Benedek Racz Date: Wed, 30 Oct 2019 16:36:28 +0100 Subject: [PATCH] [FIX] appeyor config, use APPVEYOR_REPO_BRANCH envirnoment variable --- appveyor.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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