shalzz / zola-deploy-action

Github action for building a Zola site and deploying to Github Pages
MIT License
234 stars 91 forks source link

Action causes custom url in github pages to reset #45

Closed tqwewe closed 2 years ago

tqwewe commented 2 years ago

Every time the zola-deploy-action runs, my Github pages custom domain is reset in the settings, and I have to manually enter the domain again and click save.

Is there any options for resolve this?

tqwewe commented 2 years ago

It seems like the solution is to place a file called CNAME into the static folder of the zola project. CNAME should contain the domain name (without http://).

shalzz commented 2 years ago

Yes, which is exactly what is mentioned in the readme here: https://github.com/shalzz/zola-deploy-action#custom-domain

tqwewe commented 2 years ago

Ah somehow i missed that 🤦‍♂️ my mistake