mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-02 07:18:25 +01:00
appveyor: deploy to pypi
Signed-off-by: Ruslan Kuprieiev <[email protected]>
This commit is contained in:
+12
-1
@@ -23,6 +23,10 @@ environment:
|
||||
OSS_ENDPOINT: localhost:50004
|
||||
OSS_ACCESS_KEY_ID: AccessKeyID
|
||||
OSS_ACCESS_KEY_SECRET: AccessKeySecret
|
||||
TWINE_USERNAME:
|
||||
secure: EAZ5orh6F5xpdHFPMY7qMQ==
|
||||
TWINE_PASSWORD:
|
||||
secure: puvABn5L2hnP5MKwv3JCbfcg6/7eL7wmJ5ZbFOGxPNE=
|
||||
|
||||
matrix:
|
||||
|
||||
@@ -70,6 +74,9 @@ test_script:
|
||||
after_test:
|
||||
- if "%APPVEYOR_PULL_REQUEST_NUMBER%"=="" pip install codecov
|
||||
- if "%APPVEYOR_PULL_REQUEST_NUMBER%"=="" codecov
|
||||
|
||||
before_deploy:
|
||||
- if "%APPVEYOR_REPO_TAG%"=="true" python setup.py sdist bdist_wheel --universal
|
||||
- if "%APPVEYOR_REPO_TAG%"=="true" python -m dvc pull
|
||||
- if "%APPVEYOR_REPO_TAG%"=="true" .\scripts\build_windows.cmd
|
||||
|
||||
@@ -81,9 +88,13 @@ artifacts:
|
||||
- path: dvc*.exe
|
||||
name: DVC Installer
|
||||
|
||||
deploy_script:
|
||||
- if "%APPVEYOR_REPO_TAG%"=="true" pip install twine
|
||||
- if "%APPVEYOR_REPO_TAG%"=="true" twine upload dist/*
|
||||
|
||||
deploy:
|
||||
provider: GitHub
|
||||
auth_token:
|
||||
secure: 25c1pNoXWbtTwUkKLcThwcl2A2xG8oXHsPuD73HVbQ7SRy9X6HzkCc2sXzhpfRtF
|
||||
on:
|
||||
appveyor_repo_tag: true
|
||||
APPVEYOR_REPO_TAG: true
|
||||
|
||||
@@ -5,7 +5,7 @@ echo ====== Starting to build dvc installer for Windows... ======
|
||||
if not exist dvc\NUL (echo Error: Please run this script from repository root && goto :error)
|
||||
|
||||
rmdir /Q /S build
|
||||
rmdir /Q /S dist
|
||||
del /Q /S "dist\*.ps1"
|
||||
del /Q /S dvc.spec
|
||||
del /Q /S "dvc-*.exe"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user