Try with PowerShell script.
This commit is contained in:
parent
df6cceb620
commit
a4ea99078d
|
@ -255,12 +255,7 @@ notifications:
|
|||
after_test:
|
||||
- if "%DEPLOY%" == "true" (mingw32-make install)
|
||||
|
||||
# scripts to run before deployment
|
||||
before_deploy:
|
||||
- if "%DEPLOY%" == "true" (python ..\scripts\deploy.py pack .\package\valentina\ ".\package\valentina-win-$(PLATFORM)-$(QT_VERSION)-$(APPVEYOR_REPO_BRANCH)-$(APPVEYOR_REPO_COMMIT).zip")
|
||||
|
||||
# to run your custom scripts instead of provider deployments
|
||||
deploy_script:
|
||||
- >-
|
||||
if "%DEPLOY%" == "true" (python ..\scripts\deploy.py upload %ACCESS_TOKEN% .\package\valentina-win-$(PLATFORM)-$(QT_VERSION)-$(APPVEYOR_REPO_BRANCH)-$(APPVEYOR_REPO_COMMIT).zip /0.7.x/Windows/valentina-win-$(PLATFORM)-$(QT_VERSION)-$(APPVEYOR_REPO_BRANCH)-$(APPVEYOR_REPO_COMMIT).zip)
|
||||
- ps: ../scripts/appveyor-deploy.ps1
|
||||
|
||||
|
|
17
scripts/appveyor-deploy.ps1
Normal file
17
scripts/appveyor-deploy.ps1
Normal file
|
@ -0,0 +1,17 @@
|
|||
$env:ROOT_FOLDER = "C:\projects\valentina";
|
||||
$env:BUILD_FOLDER = "C:\projects\valentina\build";
|
||||
|
||||
if($env:DEPLOY -eq "true") {
|
||||
Write-Host "[CI] Starting packing." -ForegroundColor Green;
|
||||
$env:PYTHON\python.exe $env:ROOT_FOLDER\scripts\deploy.py pack .\package\valentina\ "$env:BUILD_FOLDER\package\valentina-win-$(PLATFORM)-$(QT_VERSION)-$(APPVEYOR_REPO_BRANCH)-$(APPVEYOR_REPO_COMMIT).zip";
|
||||
Write-Host "[CI] Done." -ForegroundColor Green;
|
||||
|
||||
Write-Host "[CI] Uploading." -ForegroundColor Green;
|
||||
$env:PYTHON\python.exe $env:ROOT_FOLDER\scripts\deploy.py upload $env:ACCESS_TOKEN "$env:BUILD_FOLDER\package\valentina-win-$(PLATFORM)-$(QT_VERSION)-$(APPVEYOR_REPO_BRANCH)-$(APPVEYOR_REPO_COMMIT).zip" "/0.7.x/Windows/valentina-win-$(PLATFORM)-$(QT_VERSION)-$(APPVEYOR_REPO_BRANCH)-$(APPVEYOR_REPO_COMMIT).zip";
|
||||
Write-Host "[CI] Uploading has been finished." -ForegroundColor Green;
|
||||
Exit 0;
|
||||
}
|
||||
else {
|
||||
Write-Host "[CI] No deployment needed." -ForegroundColor Green;
|
||||
Exit 0;
|
||||
}
|
Loading…
Reference in New Issue
Block a user