mhausenblas / mkdocs-deploy-gh-pages

GitHub Action to deploy an MkDocs site to GitHub Pages
Apache License 2.0
244 stars 90 forks source link

Force push to `gh-pages` #174

Closed DiabolusGX closed 2 years ago

DiabolusGX commented 2 years ago

I'm using action on push in master branch to auto deploy my docs on my custom domain via GitHub pages but mkdocs-deploy-gh-pages force pushes site build to gh-pages branch which removed CNAME file and every time GitHub deploys site to default URL instead of my custom domain.

I'm not able to solve this by reading documentation, not sure if there is any flag to force push or not. If not, is there any alternative so that GitHub deploys site to my custom domain?

DiabolusGX commented 2 years ago

Found the reference: https://www.mkdocs.org/user-guide/deploying-your-docs/#custom-domains.