Skip to content

Commit

Permalink
deploy for appveyor
Browse files Browse the repository at this point in the history
  • Loading branch information
bakatrouble committed Feb 14, 2019
1 parent 57dfd28 commit c5046b9
Showing 1 changed file with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ platform: x64

environment:
BUILD: true
PYPI_PASSWORD:
secure: bBLT+ICiuwrkYZEBrL++Jw==

matrix:
- PYTHON: "C:\\Python34-x64"
Expand Down Expand Up @@ -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\*

0 comments on commit c5046b9

Please sign in to comment.