Skip to content

GitHub Pages resets custom domain for deployment every time I push to gh-pages #22366

Discussion options

You must be logged in to vote

Nevermind, I didn’t realize publishing to a custom domain through the settings is just commiting CNAME to gh-pages branch and since I didn’t have static/CNAME in my main branch for Hugo generator, this would be lost after each deployment to gh-pages.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@dellagustin
Comment options

Answer selected
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants