Skip to content
This repository has been archived by the owner on Feb 8, 2024. It is now read-only.

Commit

Permalink
Update CI publish script
Browse files Browse the repository at this point in the history
  • Loading branch information
Fredrik Bore committed Apr 16, 2019
1 parent a054881 commit 58924ea
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,13 @@ jobs:

publish:
docker:
- image: circleci/node:11
- image: cibuilds/chrome-extension:latest
steps:
- attach_workspace:
at: /workspace
- run:
name: 'Publish Extension'
command: |
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 /workspace/dist.zip -v "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 -v "https://www.googleapis.com/chromewebstore/v1.1/items/${APP_ID}/publish"
command: publish /workspace/dist.zip

workflows:
version: 2
Expand Down

0 comments on commit 58924ea

Please sign in to comment.