[FIX] appeyor config, use APPVEYOR_REPO_BRANCH envirnoment variable

This commit is contained in:
Benedek Racz 2019-10-30 16:36:28 +01:00
parent 406115ce98
commit 8c05f4344b

View File

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