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

Adding github action for automated submission + dependabot upkeep #390

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

louisgv
Copy link

@louisgv louisgv commented Feb 24, 2022

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 louisgv force-pushed the master branch 2 times, most recently from d1008e3 to 41e72c8 Compare February 24, 2022 02:59
@louisgv louisgv changed the title Adding github action for automated submission Adding github action for automated submission + dependabot upkeep Feb 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant