Hugo multi domain CI/CD?

Helo there,

Hugo CI/CD is simple to set up with Netlify or Github, and most jam hosting providers support hugo builds. While attempting to set up the multidomain CI with Github, I ran into a problem.

# English: example.com
# French : example.fr

Is it possible to use publishDir: to commit each language to a separate branch on build? Is there a Github-compatible option for managing Hugo multidomain builds?

Thanks


2019 is like a century old in hugo but just to mention i already read many posts regardign this which suggest having 2 different repos like this post but is it really the best solution?