File tree Expand file tree Collapse file tree 3 files changed +9
-21
lines changed Expand file tree Collapse file tree 3 files changed +9
-21
lines changed Original file line number Diff line number Diff line change @@ -30,11 +30,4 @@ script:
3030
3131after_success :
3232 - ls wheelhouse/
33-
34- deploy :
35- provider : script
36- skip_cleanup : true
37- script : /bin/bash ci/deploy.sh
38- on :
39- tags : true
40- repo : whtsky/bencoder.pyx
33+ - if [ $TRAVIS_TAG ]; then source ci/deploy.sh; fi
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ version: '{branch}-{build}'
22cache :
33 - ' %LOCALAPPDATA%\pip\Cache'
44environment :
5- password :
5+ PYPI_PASSWD :
66 secure : pp1j5lAB9NN8ZDasgY+oxoGrNw0+4gGzbNZmHVwJkCzUyrNBP5ZIuCrwjmx4q6ifg7RMiE3bVt9MljFCJh3XpsvVOAcx+AGKsHSjtXd40HM=
77init :
88 - ps : " ls C:/Python*"
@@ -23,18 +23,13 @@ after_test:
2323 - codecov
2424 - del bencoder.c
2525 - tox -c tox-wheels.ini
26+ - ps : " ls wheelhouse/*"
2627
2728deploy_script :
28- - ps : " ls wheelhouse/*"
29- - echo [distutils] > %USERPROFILE%\\.pypirc
30- - echo index-servers = >> %USERPROFILE%\\.pypirc
31- - echo pypi >> %USERPROFILE%\\.pypirc
32- - echo [pypi] >> %USERPROFILE%\\.pypirc
33- - echo username=whtsky >> %USERPROFILE%\\.pypirc
34- - echo password=%password% >> %USERPROFILE%\\.pypirc
35- - set HOME=%USERPROFILE%
36- - pip install twine
37- - ps : if($env:APPVEYOR_REPO_TAG -eq $TRUE) { "twine upload wheelhouse/*.whl" }
29+ - ps : >-
30+ if($env:appveyor_repo_tag -eq 'True') {
31+ twine upload --username whtsky --password $env:PYPI_PASSWD wheelhouse/bencoder*.whl
32+ }
3833
3934artifacts :
40- - path : wheelhouse/*.whl
35+ - path : wheelhouse/bencoder *.whl
Original file line number Diff line number Diff line change 11#! /bin/bash
22pip install twine
3- twine upload -u whtsky -p $PYPI_PASSWORD wheelhouse/bencoder* .whl
3+ twine upload --username whtsky --password $PYPI_PASSWORD wheelhouse/bencoder* .whl
You can’t perform that action at this time.
0 commit comments