-
-
Notifications
You must be signed in to change notification settings - Fork 35
38 lines (37 loc) · 1.07 KB
/
submit-to-web-store.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: 'Submit to Web Store 🛍️'
on:
workflow_dispatch:
push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup sparse checkout to exclude "images" folder
run: |
git sparse-checkout init --cone
git sparse-checkout set --no-cone '/*' '!/images/*'
git checkout
- name: setup node
uses: actions/setup-node@v4
with:
node-version: lts/*
- name: install pnpm
uses: pnpm/action-setup@v4
- name: Install dependencies and build artifact
run: |
cd apps/extension
pnpm install
pnpm build -- --zip
pnpm build -- --zip --target=firefox-mv3
- name: Browser Platform Publish
uses: PlasmoHQ/bpp@v3
with:
keys: ${{ secrets.BPP_KEYS }}
chrome-file: 'apps/extension/build/chrome-mv3-prod.zip'
firefox-file: 'apps/extension/build/firefox-mv3-prod.zip'