From 645b805aa767d7d5a840842413f87f633f1f5210 Mon Sep 17 00:00:00 2001 From: jastornig Date: Sun, 31 Dec 2023 18:51:01 +0000 Subject: [PATCH] Update .gitlab-ci.yml file --- .gitlab-ci.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 982b9b0..875d494 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -93,11 +93,9 @@ release_job: - echo 'Dropbox-API-Arg:' {\"path\"':' \"/release/v0_$CI_PIPELINE_IID/$RELEASE_APK\"} > arg.json - | curl -X POST https://content.dropboxapi.com/2/files/upload --header "Authorization: Bearer $token" --header "Content-Type: application/octet-stream" --header @arg.json --data-binary @"$RELEASE_APK" - - echo {\"path\":\"/release/v0_$CI_PIPELINE_IID/$RELEASE_APK\", "settings":{\"access\":\"viewer\", \"allow_download\":true}} >> data.json + - echo {\"path\":\"/release/v0_$CI_PIPELINE_IID/$RELEASE_APK\", \"settings\":{\"access\":\"viewer\", \"allow_download\":true}} >> data.json - | content=$(curl -X POST https://api.dropboxapi.com/2/sharing/create_shared_link_with_settings --header "Authorization: Bearer $token" --header "Content-Type: application/json" --data @data.json) - - echo $content - url=$(echo $content | jq -r ".url") - - echo url \ No newline at end of file