Can you use Nerves to create a zephyr firmware image and upload it as a artifact to a github release during a CI build?

I have a package that builds a zephyr firmware image using elixir_make that manages flashing that firmware image to an onboard chip on a nerves device.
I’d like to be able to create the zephyr firmware image and upload it as a artifact to a github release during a CI build, that can be downloaded by users of this package added as a dep of a nerves application. This is so that users that pull in this package as a dep, don’t need to have a zephyr build environment.
I’m looking at how nerves-project/nerves does something similar for nerves_system*.
But this is handling a lot of use cases that don’t really apply to my usecase. I’m wondering if this sort of problem has been done or a way I can leverage existing functionality?

I think elixir_make and cc_precompile has you covered: Precompilation guide — elixir_make v0.8.4