Publish static sites
GitHub Pages can host static websites from a GitHub repository. It is useful for project documentation, portfolios and static web applications that can be built into deployable files.
Build before publishing
Modern frontend projects often require a build step. The workflow should generate the final static directory and publish only the intended output.
Keep deployment separate from source
The repository can contain source code and documentation while the deployment process publishes generated assets. This makes the source easier to maintain.