Modern workflow with WP Engine + Github + Webpack

Though I’ve seen old threads that are mostly out of date right now, I’ve realised that there’s no easy way to keep a normal flow.

Main reason is that there’re different file structures between WP-Engine’s git structure and Local’s structure. That said, this prevents an easy deployment with something like Github Actions in which the whole repo could just be “pushed” to WP-Engine’s git.

Also, even though I’ve seen there were some discussion around Webpack and such, I’m not sure where those would live. I imagine the root?

Does anyone have a good approach on this?