Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to creating Github release that includes submodule?

Tags:

github

I have a repo on Github where I have included the Wiki as a submodule as described here.

Unfortunately, if I create a release, download, and unpack the tarball, the wiki directory is empty. Solutions?

like image 412
maasha Avatar asked Mar 27 '26 12:03

maasha


1 Answers

The source code prepared by GitHub for a release always include the repo source itself, not its submodules (as seen, for instance, in this issue).

You could attached to that release an additional artifact, which would be the source archive of the submodule.

Only a git clone --recursive of your repo would include the submodule sources as well.
If you can use git commands, you'll get the submodules content as well.

like image 73
VonC Avatar answered Mar 29 '26 13:03

VonC



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!