Benjamin Lu

everyday is cool

What to Check Before Publishing a Static Site

A successful build tells you the export command finished. It takes a few more checks to know whether the generated site is ready to serve. A homepage can exist while its stylesheet, images, or linked pages are missing.

Check the output people will actually receive

Start with the generated homepage. Confirm it has content, then open an article with an image and a page that uses the main stylesheet. Look at the browser’s Network panel for failed requests. If the site uses absolute URLs, check that the export points to the production hostname.

An automated check can cover predictable failures, such as an empty homepage or a missing media file. For visual problems, a quick preview of the exported files still earns its keep.

Once the checks pass, publish those same files. Passing the output between jobs as a build artifact keeps the files you checked and the files you deploy in sync. GitHub Actions workflow artifacts