# Github workflow to automatically build addons

**URL:** <https://gramps.discourse.group/t/github-workflow-to-automatically-build-addons/6499>\
**Category:** Development\
**Tags:** third-party-addon\
**Created:** [November 27, 2024, 9:14pm UTC](https://gramps.discourse.group/t/github-workflow-to-automatically-build-addons/6499 "2024-11-27T21:14:39Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![DavidMStraub](https://yyz2.discourse-cdn.com/free1/user_avatar/gramps.discourse.group/davidmstraub/32/7_2.png) [@DavidMStraub](https://gramps.discourse.group/u/DavidMStraub)\
**Post date:** [November 27, 2024, 9:14pm UTC](https://gramps.discourse.group/t/github-workflow-to-automatically-build-addons/6499/1 "2024-11-27T21:14:39Z")

</div>

Hi devs,

I like the new Gramps 5.2 [addon manager](https://gramps-project.org/wiki/index.php/Gramps_5.2_Wiki_Manual_-_Navigation#Using_the_Addon_Manager) and the possibility to add custom repositories. If we make it easier for addon authors to release their own addons, we might reduce the problem of PR reviews on `addons-source` being a bottleneck (of course, with the risk of users using unreviewed 3rd party addons, but they can be warned).

I just managed to create a Github action that creates the built addons and listings in a separate branch on a custom addon repository, see here:

> <https://github.com/DavidMStraub/addons-source/blob/dist/.github/workflows/build.yml>

This repo’s `master` is a clone of the `maintenance/gramps52` branch of `addons-source` and pushes the built addons to the `dist` branch on every push to master. Users should be able to use a repo like this by using `https://raw.githubusercontent.com/DavidMStraub/addons-source/dist/gramps52` as a custom addon server URL.

We could even publish this action on Github marketplace and create an addon template repository with a simple `build-gramps-addon` workflow.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/free1/uploads/gramps/original/1X/2ac1e712b7adf612e31ca08a55419f4cf37c0158.png) [@system](https://gramps.discourse.group/u/system)\
**Post date:** [December 27, 2024, 9:15pm UTC](https://gramps.discourse.group/t/github-workflow-to-automatically-build-addons/6499/2 "2024-12-27T21:15:30Z")

</div>

Closed on December 27, 2024, 9:15pm UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
