[HELP] [GITHUB] How to make FiveM Server through Github repository/subrepo?

Hi, i would like to make my FiveM Server with Github and i want to ask how all this works? I even watched some YouTube videos like ‘How to setup a GitHub subrepo for FiveM Server’ or ‘Setting Up Your Github and VSCode For FiveM’ but i quite didn’t understand that and im really confused, so i want to ask how can i make that i will upload all files that i wanna have on my FiveM Server on my Github or private repository and then how can i make it work so that it can sends logs to my discord webhook when i change something or when i change something on Github it will also update to my FiveM Server, so is there somebody who can little explain it for me please or sends me some best YouTube video for it? because as i said so i watched some videos and info’s but im still confused on how to do this and i really would like to have it set up like that, thank you.