mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-06-08 15:05:15 +02:00
fix: pkg: appveyor build without ps
This commit is contained in:
parent
37d1749694
commit
d0513315c7
2 changed files with 23 additions and 1 deletions
22
.appveyor_twine_upload.bat
Normal file
22
.appveyor_twine_upload.bat
Normal file
|
|
@ -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
|
||||
# }
|
||||
|
|
@ -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/*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue