Skip to content

Commit

Permalink
Merge pull request #96 from madig/fix-appveyor-pt4
Browse files Browse the repository at this point in the history
Fix AppVeyor deploy, take four.
  • Loading branch information
madig authored Jul 3, 2018
2 parents 9ed5866 + 2227fce commit ac43a19
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,11 @@ artifacts:
- path: dist\*.whl

on_success:
- >
IF "%APPVEYOR_REPO_TAG%" == "true"
(
python -m pip install twine
&&
python -m twine upload dist/*.whl
)
- ps: >-
if ($env:APPVEYOR_REPO_TAG -eq 'true') {
Write-Output ("Deploying " + $env:APPVEYOR_REPO_TAG_NAME + " to PyPI...")
pip install --upgrade twine
twine upload (ls dist\*.whl)
} else {
Write-Output "Not deploying as this is not a tagged commit"
}

0 comments on commit ac43a19

Please sign in to comment.