I want to create an Android library and publish it in GitHub packages so that I can use it in multiple projects. When I create a project I have not choice to create an individual library and all the examples I have seen involve adding an Android library as a module to a project. If I do that how do I publish the library separately in GitHub to a package? I was thinking the library would be a standalone GitHub repo and I would use GitHub actions so that every release would publish a new package. Without creating a library as a standalone package, I will need to find a way to only push the aar file to GitHub packages and not the whole project.
Is there a standard way to do this?