jizhi icon indicating copy to clipboard operation
jizhi copied to clipboard

Adding github action for automated submission + dependabot upkeep

Open louisgv opened this issue 2 years ago • 0 comments

Hi @unicar9 ,

I love jizhi, thanks for making it :D I was looking for way to contribute, and found that since your codebase doesn't have continuous integration, I thought adding that might be helpful.

I created 2 workflows in this PR:

  • automerge: automate the dependabot merging to reduce PR noise, using https://github.com/fastify/github-action-merge-dependabot
  • submit: automate the zip submission process to the Chrome/Firefox/Edge stores automatically, using bpp . It is set to run manually from the github action tab, but we can tweak it to run as frequent as you wish! The only thing you would need to create is a SUBMIT_KEYS github repository secret.

The SUBMIT_KEYS 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": "./builds/chrome.zip",
    "clientId": "123",
    "refreshToken": "789",
    "extId": "abcd"
  },
  "firefox": {
    "zip": "./builds/firefox.zip",
    "extId": "123",
    "apiKey": "abcd",
    "apiSecret": "abcd"
  },
 "edge": {
   "zip": "./builds/chrome.zip",
    "extId": "123",
    "cookie": "abcd"
 }
}

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 :)

louisgv avatar Feb 24 '22 00:02 louisgv