From c5046b95774e5ef8413af579a428766bc9391a09 Mon Sep 17 00:00:00 2001 From: bakatrouble Date: Thu, 14 Feb 2019 23:06:18 +0300 Subject: [PATCH] deploy for appveyor --- appveyor.yml | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/appveyor.yml b/appveyor.yml index 3685fb3..d08d1c3 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -11,6 +11,8 @@ platform: x64 environment: BUILD: true + PYPI_PASSWORD: + secure: bBLT+ICiuwrkYZEBrL++Jw== matrix: - PYTHON: "C:\\Python34-x64" @@ -78,9 +80,20 @@ after_build: - python setup.py bdist_wheel - ps: ls dist - -on_success: - - twine upload +deploy_script: + - echo "Starting Artifact Deployment" + # populate pypirc file for twine + - echo [distutils] > %USERPROFILE%\\.pypirc + - echo index-servers = >> %USERPROFILE%\\.pypirc + - echo pypi >> %USERPROFILE%\\.pypirc + - echo [pypi] >> %USERPROFILE%\\.pypirc + - echo username=bakatrouble >> %USERPROFILE%\\.pypirc + - echo password=%PYPI_PASSWORD% >> %USERPROFILE%\\.pypirc + # upload to pypi for windows + - set PATH=%BK_PATH% + - 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/*.whl" 2>$null } Else { write-output "Not on a tag on master, won't deploy to pypi"} + - echo "Finished Artifact Deployment" artifacts: - path: dist\*