Ghost does not build when deploying theme on production using github action

Everything works well in development.
When I push on GitHub, it triggers the action and deploy on production. GitHub says the deployment succeed.
The problem comes from the built folder that is not generated by ghost so the CSS is not loaded.

However if I upload the zip it works.

Hi :wave:

Do you mean that your theme isn’t built before being deployed (bundling, minifying)?

The GitHub theme deploy action isn’t responsible for that. You either need to build those assets before pushing to your repository or set up another GitHub action that builds the assets before they are deployed.

1 Like

Just learn a thing. I somewhat thought ghost would build it for me magically ahah.

Thank you Ryan.

2 Likes