I built a website using Eleventy that I’m hosting on Github Pages. I recently integrated Netlify CMS to this website but I have trouble updating the publish folder (/docs) in my Github repository after making changes from Netlify CMS.
Locally, my command “npm run build” builds a /docs folder (the static website) from the /_src folder. The /docs folder is part of my commit/push to Github so I can use Github Pages. Everything works fine when building and pushing from my local environment.
When I update the website from Netlify CMS, the deploy triggers as expected and run the “npm run build” command but only my source folder (/_src) is pushed and merged to my Github repository. The built folder (/docs) that I use to serve my site from on Github Pages is not part of the push and merge even though the command built it…
Here are my Build settings :
- Repository: github.com/elechaudel/outrospection (private)
- Base directory: Not set
- Build command: npm run build
- Publish directory: Not set (tried with “docs” but same issue)
- Netlify site name: outrospection.netlify.app
- Custom domain: https://www.outrospection.lu
- No error during build
The few resources I found online:
My question is: how can I integrate the /docs folder to the push and merge after Netlify deploy?
Hope you could help me with that!