Following a guide from Ryan in youtube.. (https://www.youtube.com/watch?v=LIFvgrRxdt4)
What you need:
- 2 repos, one for the code of the site and one to deploy (we are going to use github pages)
Those two repos will be joined using git submodule.
In the code repo do:
git submodule add -b main <github pages repo> public
Where the -b main is the branch of the repo, abd public is the folder that will be linked within the code repo and will point to that branch of the github pages repo.