Skip to content

Commit 4d05d61

Browse files
Prepare for release of 2.0 (#91)
1 parent d59273e commit 4d05d61

File tree

3 files changed

+40
-13
lines changed

3 files changed

+40
-13
lines changed

.github/workflows/submit.yml

Lines changed: 38 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,21 @@
1-
name: "Submit to Web Store"
1+
name: "Submit to Web Stores"
22
on:
33
workflow_dispatch:
4+
inputs:
5+
channel:
6+
description: 'Release channel to publish to'
7+
required: true
8+
type: choice
9+
options:
10+
- staging
11+
- production
12+
default: staging
413
push:
514
branches:
6-
- master
15+
- main
16+
17+
env:
18+
CHANNEL: ${{ github.event.inputs.channel || 'staging' }}
719

820
jobs:
921
build:
@@ -21,17 +33,32 @@ jobs:
2133
with:
2234
version: latest
2335
run_install: true
24-
- name: Use Node.js 16.x
36+
- name: Use Node.js 18.x
2537
uses: actions/[email protected]
2638
with:
27-
node-version: 16.x
39+
node-version: 18.x
2840
cache: "pnpm"
29-
- name: Build the extension
30-
run: pnpm build
31-
- name: Package the extension into a zip artifact
32-
run: pnpm package
33-
- name: Browser Platform Publish
41+
- name: Build the extension (Chrome)
42+
run: pnpm plasmo build --target=chrome-mv3
43+
- name: Build the extension (Firefox)
44+
run: pnpm plasmo build --target=firefox-mv2
45+
- name: Package the extension into zip artifacts
46+
run: |
47+
pnpm package --target=chrome-mv3
48+
pnpm package --target=firefox-mv2
49+
- name: Browser Platform Publish (staging)
50+
uses: PlasmoHQ/bpp@v3
51+
if: env.CHANNEL == 'staging'
52+
with:
53+
keys: ${{ secrets.SUBMIT_KEYS_STAGING }}
54+
verbose: true
55+
chrome-file: build/chrome-mv3-prod.zip
56+
firefox-file: build/firefox-mv2-prod.zip
57+
- name: Browser Platform Publish (production)
3458
uses: PlasmoHQ/bpp@v3
59+
if: env.CHANNEL == 'production'
3560
with:
36-
keys: ${{ secrets.SUBMIT_KEYS }}
37-
artifact: build/chrome-mv3-prod.zip
61+
keys: ${{ secrets.SUBMIT_KEYS_PRODUCTION }}
62+
verbose: true
63+
chrome-file: build/chrome-mv3-prod.zip
64+
firefox-file: build/firefox-mv2-prod.zip

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ dist/
3636
.plasmo
3737

3838
# bpp - http://bpp.browser.market/
39-
keys.json
39+
key*.json
4040

4141
# typescript
4242
.tsbuildinfo

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "gitpod",
33
"displayName": "Gitpod",
4-
"version": "2.0.0",
4+
"version": "2.0.1",
55
"description": "The developer platform for on-demand cloud development environments. Create software faster and more securely.",
66
"author": "Gitpod <[email protected]>",
77
"homepage": "https://www.gitpod.io",

0 commit comments

Comments
 (0)