Using the question below I've installed extensions hosted on private and public repositories using composer, but I need to create my custom extension now.
How to install an extension on a private Github using Composer?
What are the requirements to prepare my extensions on Github to be installed using the composer?