Adding automated extension submission via github action
Pull Request Template
Description
Hi friends! Thanks for making this extension, it has been extremely helpful in my workflow. Was looking for some way to contribute, and thought that maybe an automated submission pipeline for the built zip could be helpful.
I created a github action called bpp that can submit the zip to the every stores automatically (Safari is in the pipeline). I've set it to run manually from the github action tab, but we can tweak it to run as frequent as needed! I've also fixed the github action to use node14 since that's what was used for the current lockfile.
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.crx",
"clientId": "123",
"refreshToken": "789",
"extId": "abcd"
},
"firefox": {
"zip": "./extension.xpi",
"extId": "123",
"apiKey": "abcd",
"apiSecret": "efgh"
}
}
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 :)
Type of change
- [x] Devops
How Has This Been Tested?
I have tested this action in my own fork: https://github.com/plasmo-corp/headless-recorder/runs/5257804875?check_suite_focus=true#logs
Ref #122
@louisgv thanks a lot for your contribution, this looks great. Will review it next week!
https://github.com/checkly/headless-recorder/issues/232