-
Notifications
You must be signed in to change notification settings - Fork 13
Open
Description
Why
Deploys are a headache whenever working on a complex MediaWiki gadget that is based on GitHub. Anything we can do to simplify deploys is good. Simple deploys mean the onwiki gadget is less likely to get out of sync, and it means that merged patches can be deployed fast, easily, and with a minimum amount of specialized knowledge.
What
add this gadget to https://gadget-deploy.toolforge.org/, which is a three-click gadget GitHub-to-wiki deploy tool for interface administrators.
This can be done by following the directions at https://github.com/wikimedia-gadgets/gadget-deploy?tab=readme-ov-file#how-to-configure-a-gadget-for-deployment. Copying from those directions...
- "Create deployment script for the gadget. Ideally, use node.js. It should read the API url of the wiki and an OAuth 2 access token from a JSON file and use them to do the deployment. Format of the credentials file generated by this tool is:" - We have a working deploy script (
npm run deploy). Sounds like we just need to modify it to acceptsiteandaccessTokenfrom a credentials file. - Raise a PR to add an entry in gadget-conf.ts
- Clone the gadget's git repo on the Toolforge project - Novem or SD0001 needs to do
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels