How to push only the dist folders to github

Hello,

For reasons I can’t state clearly, I can’t push the source code to github. How can i push the dist folders (api and web) to github and let Vercel handle the website?

I managed to get it working with web dist but i also need the api to make db calls and mails as well. So far I couldn’t do this. Any help would be appreciated!