Skip to content

Commit

Permalink
Merge pull request #405 from sassy/feature/add-release-action
Browse files Browse the repository at this point in the history
add release action
  • Loading branch information
sassy committed Sep 5, 2023
2 parents 0187ba7 + 2e9d872 commit 4165bf3
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Deploy to Chrome web store

on:
push:
tags:
- "v*.*.*"

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:

- name: Checkout
uses: actions/checkout@v3

- name: Build
run: |
yarn install
yarn webpack
- name: Zip dist
uses: montudor/action-zip@v1
with:
args: zip -qq -r release.zip dist/

- name: Upload to Chrome Web Store
uses: mobilefirstllc/cws-publish@latest
with:
action: 'upload' # one of: upload, publish, testers
client_id: ${{ secrets.CLIENT_ID }}
client_secret: ${{ secrets.CLIENT_SECRET }}
refresh_token: ${{ secrets.REFRESH_TOKEN }}
extension_id: ${{ secrets.EXTENSION_ID }}
zip_file: 'release.zip'

0 comments on commit 4165bf3

Please sign in to comment.