From 8076e0b2e1857ff5b009bf9356d02b2f0ad1f710 Mon Sep 17 00:00:00 2001 From: Herklos Date: Sat, 4 Apr 2020 12:08:27 +0200 Subject: [PATCH] [CI] Update appveyor file --- appveyor.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/appveyor.yml b/appveyor.yml index 5312b803..2e10d39a 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -26,8 +26,10 @@ after_test: on_success: - ps: | If ($env:APPVEYOR_REPO_TAG -eq "true") { - git fetch --all - pip install twine - python setup.py sdist bdist_wheel bdist_wininst bdist_egg - Invoke-Expression "twine upload -u $env:PYPI_USERNAME -p $env:PYPI_PASSWORD --repository-url https://upload.pypi.org/legacy/ --skip-existing dist/*" 2>&1 | Out-Null + Write-Output ("Deploying " + $env:APPVEYOR_REPO_TAG_NAME + " to PyPI...") + &"${env:PYTHON}/python.exe" -m pip install twine + &"${env:PYTHON}/python.exe" setup.py sdist bdist_wheel bdist_egg + &"${env:PYTHON}/python.exe" -m twine upload -u ${env:PYPI_USERNAME} -p ${env:PYPI_PASSWORD} --skip-existing dist/* + } else { + Write-Output "No tag for deployment" }