2
0
Эх сурвалжийг харах

appveyor: deploy to pypi on tag

Signed-off-by: Ruslan Kuprieiev <ruslan@iterative.ai>
Ruslan Kuprieiev 5 жил өмнө
parent
commit
a27f87d25d
1 өөрчлөгдсөн 6 нэмэгдсэн , 2 устгасан
  1. 6 2
      appveyor.yml

+ 6 - 2
appveyor.yml

@@ -1,7 +1,7 @@
 environment:
 
-  PYPI_USER: "dulwich-bot"
-  PYPI_PSWD:
+  TWINE_USERNAME: "dulwich-bot"
+  TWINE_PASSWORD:
     # See https://www.appveyor.com/docs/build-configuration/#secure-variables
     secure: e7DTu4CwOCARfN/mwA8lXQ==
 
@@ -89,5 +89,9 @@ after_test:
   - "build.cmd %PYTHON%\\python.exe setup.py bdist_msi"
   - ps: "ls dist"
 
+deploy_script:
+  - if "%APPVEYOR_REPO_TAG%"=="true" pip install twine
+  - if "%APPVEYOR_REPO_TAG%"=="true" twine upload dist\dulwich-*.whl
+
 artifacts:
   - path: dist\*