Skip to content

Commit

Permalink
Fix issue with env var in gh-actions deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
bijij committed Oct 26, 2019
1 parent 22370c3 commit b254892
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"

0 comments on commit b254892

Please sign in to comment.