yomichan icon indicating copy to clipboard operation
yomichan copied to clipboard

Add Github Action to Deploy to Web Stores

Open ColdSauce opened this issue 3 years ago • 1 comments

Hi @FooSoft, we created a Github action to make it easier to publish extensions to the various web stores.

Thought y'all might find it useful so I added a Github workflow that will build the extension, zip it up, and publish to the web stores on dispatch.

The only thing you would need to create is a SUBMIT_KEYS GitHub repository secret.

This secret is a JSON, with the schema defined here.

Here's a sample key:

{
  "$schema": "https://raw.githubusercontent.com/plasmo-corp/bpp/v1/keys.schema.json",
  "chrome": {
    "zip": "./extension/chrome.zip",
    "clientId": "123",
    "clientSecret": "456",
    "refreshToken": "789",
    "extId": "abcd"
  },
  "firefox": {
    "zip": "./extension/firefox.xpi",
    "apiKey": "123",
    "apiSecret": "abcd",
    "extId": "foobar"
  }
}

You can find instructions on how to get those keys in the schema, or if you use vscode, the schema should provide hint/intelisense when hovering over the json properties. If you need any help in setting up the keys, feel free to @ me.

Otherwise, if this doesn't seem necessary, feel free to close the PR!

ColdSauce avatar Feb 22 '22 19:02 ColdSauce

Very cool, I will have to take a look at this. Deploying to the stores is always kind of a pain, and I have wondered for a while if there was a way to automate this :+1:

FooSoft avatar Feb 25 '22 01:02 FooSoft