Skip to content

Commit

Permalink
[BRG-549] Update gitlab ci process
Browse files Browse the repository at this point in the history
  • Loading branch information
Viktor Pulyak committed Apr 21, 2020
1 parent eb1602f commit 155a569
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ publish:
stage: publish
dependencies:
- build
before_script:
- apt-get update -y && apt-get -y --allow-unauthenticated install curl jq
script:
- ACCESS_TOKEN=$(curl "https://accounts.google.com/o/oauth2/token" -d "client_id=${CHROME_CLIENT_ID}&client_secret=${CHROME_CLIENT_SECRET}&refresh_token=${CHROME_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 ./build/zip/echo_bridge.zip -v "https://www.googleapis.com/upload/chromewebstore/v1.1/items/${CHROME_APP_ID}"'
Expand Down

0 comments on commit 155a569

Please sign in to comment.