Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prepare for release of 2.0 #91

Merged
merged 3 commits into from
Sep 25, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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