Another attempt to fix pypi uploading from AppVeyor
@@ -99,9 +99,10 @@ deploy_script:
# set HOME=%USERPROFILE%
- ps: >-
If ($env:APPVEYOR_REPO_TAG -eq "true" -And $env:APPVEYOR_REPO_BRANCH -eq "master") {
- Invoke-Expression "twine upload --skip-existing dist/*" 2>$null
+ $env:pypi_upload = 'true'
}
Else {
write-output "Not on a tag on master, won't deploy to pypi"
}
+ - cmd: IF "%pypi_upload%"=="true" twine upload --skip-existing dist/*
- echo "Finished Artifact Deployment"
