From d1e6eb269d083fe36379159cda59d475471e4bf1 Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Sat, 25 Sep 2021 19:50:48 +0300 Subject: [PATCH] Separate script starts from CIRRUS_WORKING_DIR. --- .cirrus.yml | 1 + scripts/cirrus-deploy.sh | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.cirrus.yml b/.cirrus.yml index 32244e63b..5b819413e 100644 --- a/.cirrus.yml +++ b/.cirrus.yml @@ -75,6 +75,7 @@ macos_task_template: &MACOS_TASK_TEMPLATE - ${COMPILER} --version - make -j$(nproc) deploy_script: + - pwd - $CIRRUS_WORKING_DIR/scripts/cirrus-deploy.sh before_cache_script: - brew cleanup diff --git a/scripts/cirrus-deploy.sh b/scripts/cirrus-deploy.sh index 2902b15ae..73c48daad 100755 --- a/scripts/cirrus-deploy.sh +++ b/scripts/cirrus-deploy.sh @@ -28,7 +28,7 @@ if [[ "$DEPLOY" == "true" ]]; then check_failure "Unable to create an archive."; 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."; print_info "Successfully uploaded.";