WARNING: This post contains links to content that no longer exists. Do not use this blog post as a guide. It remains for archive purposes only.
I found a ton of posts that describe how to use Hugo and GitLab CI to create and host a static site on GitLab Pages.
However, I had a different requirement: I want to use a local GitLab CE instance to store my content, use GitLab CI (locally) to build the static output and then push that output to GitHub to publish on GitHub Pages.