generated from chibat/chrome-extension-typescript-starter
-
-
Notifications
You must be signed in to change notification settings - Fork 1
81 lines (78 loc) · 2.72 KB
/
submit.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
name: "Submit to Web Store"
on:
release:
types: [created]
workflow_dispatch:
# inputs:
# version:
# description: "Extension version"
# required: true
# default: "0.0.0"
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Cache pnpm modules
uses: actions/cache@v3
with:
path: ~/snipTube/.pnpm-store
key: ${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-
- uses: pnpm/action-setup@v4
with:
version: latest
run_install: true
- name: Use Node.js 18
uses: actions/setup-node@v3
with:
node-version: "18"
cache: "pnpm"
- name: Install deps
run: pnpm i sharp
- name: Build the chromium based extension and zip it
run: pnpm build:plasmo --zip
- name: Build the safari based extension and zip it
run: pnpm build:plasmo --target=safari-mv3 --zip
- name: Build the firefox based extension and zip it
run: pnpm build:plasmo --target=firefox-mv3 --zip
- name: Build the edge based extension and zip it
run: pnpm build:plasmo --target=edge-mv3 --zip
- name: Upload ChromeExtension to release
uses: Shopify/upload-to-release@master
with:
content-type: application/zip
path: ./build/chrome-mv3-prod.zip
name: ChromeExtension.zip
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Upload SafariExtension to release
uses: Shopify/upload-to-release@master
with:
content-type: application/zip
path: ./build/safari-mv3-prod.zip
name: SafariExtension.zip
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Upload FirefoxExtension to release
uses: Shopify/upload-to-release@master
with:
content-type: application/zip
path: ./build/firefox-mv3-prod.zip
name: FirefoxExtension.zip
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Upload EdgeExtension to release
uses: Shopify/upload-to-release@master
with:
content-type: application/zip
path: ./build/edge-mv3-prod.zip
name: EdgeExtension.zip
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Browser Platform Publish
uses: PlasmoHQ/bpp@v3
with:
keys: ${{ secrets.PUBLISHING_KEYS }}
# chrome-file: "build/myext_chromium_${{ env.EXT_VERSION }}.zip"
# edge-file: "edge/myext_edge_${{ env.EXT_VERSION }}.zip"
# edge-notes: "This is a test submission"
# version-file: "src/manifest.json"
# verbose: true