Skip to content

Commit

Permalink
Add workflow for publishing to chrome web store
Browse files Browse the repository at this point in the history
  • Loading branch information
Bims-sh authored Sep 4, 2024
1 parent c192220 commit 4a53996
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/build_and_publish_chrome.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Publish

on:
push:
tags:
- '*'

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 20

- name: Install dependencies
run: npm install

- name: Build the extension
run: npm run build:chrome

- name: Put the extension into a zip file
run: zip -r release.zip dist/chrome

- name: Upload to Chrome Web Store
uses: mobilefirstllc/cws-publish@latest
with:
action: 'upload'
client_id: ${{ secrets.CLIENT }}
client_secret: ${{ secrets.SECRET }}
refresh_token: ${{ secrets.TOKEN }}
extension_id: ${{ secrets.EXTENSION_ID }}
zip_file: 'release.zip'

0 comments on commit 4a53996

Please sign in to comment.