diff --git a/.appveyor_twine_upload.bat b/.appveyor_twine_upload.bat new file mode 100644 index 00000000..2397a997 --- /dev/null +++ b/.appveyor_twine_upload.bat @@ -0,0 +1,22 @@ +IF "%APPVEYOR_REPO_BRANCH%"=="deploy" ( + ECHO "twine upload --skip-existing dist/*" 1>&2 +) ELSE ( + ECHO Only deploy on deploy branch +) + + + + echo not deploying on other branches, other than deploy + + + +#ps: >- +# If ($env:APPVEYOR_REPO_BRANCH -eq 'devel') { +# echo not deploying on devel # twine upload --skip-existing -r test dist/* +# } +# ElseIf ($env:APPVEYOR_REPO_BRANCH -eq 'deploy') { +# twine upload --skip-existing dist/* +# } +# Else { +# echo not deploying on other branches +# } \ No newline at end of file diff --git a/appveyor.yml b/appveyor.yml index 1ba9fc4c..13b5c2df 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -71,7 +71,7 @@ deploy_script: - echo repository = https://testpypi.python.org/pypi >> %USERPROFILE%\\.pypirc - echo username = maxz >> %USERPROFILE%\\.pypirc - echo password = %pip_access% >> %USERPROFILE%\\.pypirc -- echo %APPVEYOR_REPO_BRANCH% +- .appveyor_twine_upload.bat #- ps: >- # If ($env:APPVEYOR_REPO_BRANCH -eq 'devel') { # echo not deploying on devel # twine upload --skip-existing -r test dist/*