From 437d97e137c3e0d8d72a5af5784e227cf60db1f6 Mon Sep 17 00:00:00 2001 From: Ajordat Date: Fri, 29 Nov 2024 16:18:15 +0100 Subject: [PATCH] Add github actions workflow to publish --- .github/workflows/publish.yaml | 37 ++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .github/workflows/publish.yaml diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml new file mode 100644 index 0000000..a65ae38 --- /dev/null +++ b/.github/workflows/publish.yaml @@ -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/action-zip@v1.2 + 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' \ No newline at end of file