Skip to content

Commit ac43a19

Browse files
authored
Merge pull request #96 from madig/fix-appveyor-pt4
Fix AppVeyor deploy, take four.
2 parents 9ed5866 + 2227fce commit ac43a19

1 file changed

Lines changed: 8 additions & 7 deletions

File tree

appveyor.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -68,10 +68,11 @@ artifacts:
6868
- path: dist\*.whl
6969

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

0 commit comments

Comments
 (0)