Skip to content

Submit artifacts to Web Stores #9

Submit artifacts to Web Stores

Submit artifacts to Web Stores #9

Workflow file for this run

name: "Submit artifacts to Web Stores"
on:
push:
tags:
- v*
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Use Node.js 18.x
uses: actions/[email protected]
with:
node-version: 18.x
cache: "pnpm"
- name: Install pnpm
run: npm install -g pnpm
- name: Cache pnpm store
uses: actions/cache@v3
with:
path: ~/.pnpm-store
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install dependencies
run: pnpm install
- name: Build Chrome artifact
run: pnpm build --target=chrome-mv3 --zip
- name: Build Firefox artifact
run: pnpm build --target=firefox-mv2 --zip
- name: Browser Platform Publish
uses: PlasmoHQ/bpp@v3
with:
keys: ${{ secrets.SUBMIT_KEYS }}
chrome-file: build/chrome-mv3-prod.zip
firefox-file: build/firefox-mv2-prod.zip