From b25489291d9660353a5139b1e9ca80fecd623184 Mon Sep 17 00:00:00 2001 From: Josh B Date: Sun, 27 Oct 2019 00:31:56 +1000 Subject: [PATCH] Fix issue with env var in gh-actions deploy --- .github/workflows/publish.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 1d0adf2..5762340 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -42,7 +42,7 @@ jobs: jq "del(.browser_specific_settings)" manifest.json > manifest.json.copy mv manifest.json.copy manifest.json STASH_NAME=$(git stash create) - git archive -o package.zip STASH_NAME + git archive -o package.zip ${STASH_NAME} 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) curl -H "Authorization: Bearer ${ACCESS_TOKEN}" -H "x-goog-api-version: 2" -X PUT -T package.zip "https://www.googleapis.com/upload/chromewebstore/v1.1/items/${APP_ID}" curl -H "Authorization: Bearer ${ACCESS_TOKEN}" -H "x-goog-api-version: 2" -H "Content-Length: 0" -X POST "https://www.googleapis.com/chromewebstore/v1.1/items/${APP_ID}/publish"