Skip to content

Commit

Permalink
[CI] Update appveyor file
Browse files Browse the repository at this point in the history
  • Loading branch information
Herklos committed Apr 4, 2020
1 parent d73a0ba commit 8076e0b
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}

0 comments on commit 8076e0b

Please sign in to comment.