Skip to content

Commit

Permalink
Add github actions workflow to publish
Browse files Browse the repository at this point in the history
  • Loading branch information
Ajordat committed Nov 29, 2024
1 parent 82501d4 commit 437d97e
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Publish Chrome store

on:
push:
branches:
- master

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

- name: Install dependencies
run: npm install

- name: Create dist folder
run: npm run build

- uses: vimtor/[email protected]
with:
files: dist/
recursive: true
dest: release.zip

- 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 437d97e

Please sign in to comment.