From f907bdc0101b1eed710f5f2cd336dba56b24ec80 Mon Sep 17 00:00:00 2001 From: Lev Mishin Date: Sat, 9 Dec 2017 21:39:03 +0100 Subject: [PATCH] fixed shell scripts --- .circleci/config.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index fc3980c..bafd104 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -46,7 +46,7 @@ jobs: command: | if [ "${CIRCLE_BRANCH}" == "master" ]; then export ACCESS_TOKEN=$(curl "https://accounts.google.com/o/oauth2/token" -d "client_id=${CLIENT_ID}&client_secret=${CLIENT_SECRET}&refresh_token=${REFRESH_TOKEN}&grant_type=refresh_token&redirect_uri=urn:ietf:wg:oauth:2.0:oob" | jq -r .access_token) - UPLOAD_RESULT=(curl -H "Authorization: Bearer ${ACCESS_TOKEN}" -H "x-goog-api-version: 2" -X PUT -T out/out.zip -v "https://www.googleapis.com/upload/chromewebstore/v1.1/items/${APP_ID}") + UPLOAD_RESULT=$(curl -H "Authorization: Bearer ${ACCESS_TOKEN}" -H "x-goog-api-version: 2" -X PUT -T out/out.zip -v "https://www.googleapis.com/upload/chromewebstore/v1.1/items/${APP_ID}") echo Package uploaded echo $UPLOAD_RESULT if [ "$(echo $UPLOAD_RESULT | jq -r .uploadState)" == "FAILURE" ]; then @@ -62,7 +62,7 @@ jobs: name: "Publish Extension to the Google Chrome Store" command: | if [ "${CIRCLE_BRANCH}" == "master" ]; then - PUBLISH_RESULT=$(curl -H "Authorization: Bearer ${ACCESS_TOKEN}" -H "x-goog-api-version: 2" -H "Content-Length: 0" -X POST -v "https://www.googleapis.com/chromewebstore/v1.1/items/${APP_ID}/publish" | jq .uploadState) + PUBLISH_RESULT=$(curl -H "Authorization: Bearer ${ACCESS_TOKEN}" -H "x-goog-api-version: 2" -H "Content-Length: 0" -X POST -v "https://www.googleapis.com/chromewebstore/v1.1/items/${APP_ID}/publish") echo Package published echo $PUBLISH_RESULT if [ "$(echo $PUBLISH_RESULT | jq -r .status)" != "["OK"]" ]; then