Add privacy policy #2
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Update Chrome Extension | |
on: | |
push: | |
tags: | |
- v*.*.* | |
jobs: | |
build-chrome-extension: | |
name: Build Chrome Extension artifact | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Build | |
run: |- | |
zip -r chrome-extension-${{ github.event.pull_request.head.sha }}.zip background.js content.js icon.png manifest.json | |
- name: Archive chrome-extension artifact | |
uses: actions/upload-artifact@v2 | |
with: | |
name: chrome-extension=${{ github.sha }} | |
path: chrome-extension=${{ github.event.pull_request.head.sha }}.zip | |
upload-extension: | |
name: Upload Extension | |
runs-on: ubuntu-latest | |
needs: build-chrome-extension | |
env: | |
EXTENSION_ID: obajlilkhjjifcbhkchdefomlkbbhpjm | |
steps: | |
- uses: actions/setup-node@v2-beta | |
with: | |
node-version: "16.10" | |
- name: Download bundle artifact | |
uses: actions/download-artifact@v3 | |
with: | |
name: chrome-extension-${{ github.sha }} | |
- name: Install webstore CLI | |
run: |- | |
npm install -g chrome-webstore-upload-cli | |
- name: Upload step | |
run: |- | |
chrome-webstore-upload upload \\ | |
--source chrome-extension-${{ github.event.pull_request.head.sha }}.zip \\ | |
--extension-id ${{ env.EXTENSION_ID }} \\ | |
--client-id ${{ secrets.CI_GOOGLE_CLIENT_ID }} \\ | |
--client-secret ${{ secrets.CI_GOOGLE_CLIENT_SECRET }} \\ | |
--refresh-token ${{ secrets.CI_GOOGLE_REFRESH_TOKEN }} | |