Separate script starts from CIRRUS_WORKING_DIR.

This commit is contained in:
Roman Telezhynskyi 2021-09-25 19:50:48 +03:00
parent 8c145b9150
commit d1e6eb269d
2 changed files with 2 additions and 1 deletions

View File

@ -75,6 +75,7 @@ macos_task_template: &MACOS_TASK_TEMPLATE
- ${COMPILER} --version - ${COMPILER} --version
- make -j$(nproc) - make -j$(nproc)
deploy_script: deploy_script:
- pwd
- $CIRRUS_WORKING_DIR/scripts/cirrus-deploy.sh - $CIRRUS_WORKING_DIR/scripts/cirrus-deploy.sh
before_cache_script: before_cache_script:
- brew cleanup - brew cleanup

View File

@ -28,7 +28,7 @@ if [[ "$DEPLOY" == "true" ]]; then
check_failure "Unable to create an archive."; check_failure "Unable to create an archive.";
print_info "Start uploading."; print_info "Start uploading.";
python3 $CIRRUS_WORKING_DIR/scripts/deploy.py upload $ACCESS_TOKEN $CIRRUS_WORKING_DIR/build/valentina-${PLATFORM}-${CIRRUS_CHANGE_IN_REPO}.tar.xz "/0.7.x/Mac OS X/valentina-${PLATFORM}-${CIRRUS_CHANGE_IN_REPO}.tar.xz"; python3 $CIRRUS_WORKING_DIR/scripts/deploy.py upload $ACCESS_TOKEN $CIRRUS_WORKING_DIR/valentina-${PLATFORM}-${CIRRUS_CHANGE_IN_REPO}.tar.xz "/0.7.x/Mac OS X/valentina-${PLATFORM}-${CIRRUS_CHANGE_IN_REPO}.tar.xz";
check_failure "Unable to upload."; check_failure "Unable to upload.";
print_info "Successfully uploaded."; print_info "Successfully uploaded.";