Skip to content

Commit

Permalink
Prepare for release of 2.0 (#91)
Browse files Browse the repository at this point in the history
  • Loading branch information
filiptronicek authored Sep 25, 2023
1 parent d59273e commit 4d05d61
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 13 deletions.
49 changes: 38 additions & 11 deletions .github/workflows/submit.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,21 @@
name: "Submit to Web Store"
name: "Submit to Web Stores"
on:
workflow_dispatch:
inputs:
channel:
description: 'Release channel to publish to'
required: true
type: choice
options:
- staging
- production
default: staging
push:
branches:
- master
- main

env:
CHANNEL: ${{ github.event.inputs.channel || 'staging' }}

jobs:
build:
Expand All @@ -21,17 +33,32 @@ jobs:
with:
version: latest
run_install: true
- name: Use Node.js 16.x
- name: Use Node.js 18.x
uses: actions/setup-node@v3.4.1
with:
node-version: 16.x
node-version: 18.x
cache: "pnpm"
- name: Build the extension
run: pnpm build
- name: Package the extension into a zip artifact
run: pnpm package
- name: Browser Platform Publish
- name: Build the extension (Chrome)
run: pnpm plasmo build --target=chrome-mv3
- name: Build the extension (Firefox)
run: pnpm plasmo build --target=firefox-mv2
- name: Package the extension into zip artifacts
run: |
pnpm package --target=chrome-mv3
pnpm package --target=firefox-mv2
- name: Browser Platform Publish (staging)
uses: PlasmoHQ/bpp@v3
if: env.CHANNEL == 'staging'
with:
keys: ${{ secrets.SUBMIT_KEYS_STAGING }}
verbose: true
chrome-file: build/chrome-mv3-prod.zip
firefox-file: build/firefox-mv2-prod.zip
- name: Browser Platform Publish (production)
uses: PlasmoHQ/bpp@v3
if: env.CHANNEL == 'production'
with:
keys: ${{ secrets.SUBMIT_KEYS }}
artifact: build/chrome-mv3-prod.zip
keys: ${{ secrets.SUBMIT_KEYS_PRODUCTION }}
verbose: true
chrome-file: build/chrome-mv3-prod.zip
firefox-file: build/firefox-mv2-prod.zip
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ dist/
.plasmo

# bpp - http://bpp.browser.market/
keys.json
key*.json

# typescript
.tsbuildinfo
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "gitpod",
"displayName": "Gitpod",
"version": "2.0.0",
"version": "2.0.1",
"description": "The developer platform for on-demand cloud development environments. Create software faster and more securely.",
"author": "Gitpod <info@gitpod.io>",
"homepage": "https://www.gitpod.io",
Expand Down

0 comments on commit 4d05d61

Please sign in to comment.