From 1aac0b84f7a75d4bb74d9f15e8abd18e204af50f Mon Sep 17 00:00:00 2001 From: Alexey Gutkin Date: Tue, 16 Apr 2024 10:54:14 +0300 Subject: [PATCH 1/2] fix publish --- .circleci/config.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index 8518b3e..edf0e54 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -66,6 +66,12 @@ jobs: - run: name: Publish command: | + Save gcloud credentials service account and authenticate + bash google-cloud-sdk/install.sh --rc-path=/Users/distiller/.bashrc --usage-reporting=false --path-update=true --command-completion=true --install-python=true --quiet + source ~/.bashrc + echo $GOOGLE_SERVICE_ACCOUNT_KEY_BASE64 | base64 --decode > gcloud_service_account.json + export GOOGLE_APPLICATION_CREDENTIALS=gcloud_service_account.json + gcloud auth activate-service-account --key-file=$GOOGLE_APPLICATION_CREDENTIALS # publish in google storage bucket (additionally to electronbuild-publisher) bash upload_release_to_gs.sh - save_cache: From a496c963399edc71156f965fa7ebc597a2c89b57 Mon Sep 17 00:00:00 2001 From: Alexey Gutkin Date: Tue, 16 Apr 2024 14:14:08 +0300 Subject: [PATCH 2/2] fix-save --- .circleci/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index edf0e54..908782d 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -66,7 +66,7 @@ jobs: - run: name: Publish command: | - Save gcloud credentials service account and authenticate + #Save gcloud credentials service account and authenticate bash google-cloud-sdk/install.sh --rc-path=/Users/distiller/.bashrc --usage-reporting=false --path-update=true --command-completion=true --install-python=true --quiet source ~/.bashrc echo $GOOGLE_SERVICE_ACCOUNT_KEY_BASE64 | base64 --decode > gcloud_service_account.json