GitHub Pages deployment
BNR info-hub Technical Manual
1 GitHub Pages deployment
1.1 Purpose
This page explains how the BNR info-hub is deployed as a static website through GitHub Pages.
The site is built by Quarto and published as static files. No live server, database connection, or runtime application is required for routine public viewing.
1.2 Static site model
The model is:
Quarto source files -> rendered _site folder -> GitHub Pages website
The public website should not need access to confidential data or Stata.
1.3 Local render versus GitHub render
During local development, render or preview from:
C:\yoshimi-hot\output\analyse-bnr\info-hub\site
Preview locally:
quarto preview --port 4200Render locally:
quarto renderThe local rendered site appears in:
site/_site/
This folder is ignored by Git.
1.4 GitHub Actions
The remote repo can use GitHub Actions to render the Quarto site and publish it through GitHub Pages.
Because GitHub Actions cannot access licensed Stata or confidential private data, all Stata-generated public artefacts needed by the site must already be present in the repo.
This is why approved Stata outputs are copied into:
site/downloads/files/
before publishing.
1.5 What GitHub Pages should publish
GitHub Pages should publish the rendered static site, including:
- HTML pages
- CSS and assets
- public figures
- public CSV files
- public YAML metadata
- Quarto-generated PDFs
- release catalogue pages
1.6 What GitHub Pages should not need
GitHub Pages should not need:
- confidential data
- REDCap exports
- private
.dtafiles - Stata execution
- local path files
- private logs
1.7 Deployment checklist
Check:
- The site renders locally.
- The briefing page opens.
- The PDF link works after render.
- CSV download links work.
- Metadata and build record links work.
- The release catalogue has been updated.
- Git status shows only intended files.
1.8 Troubleshooting deployment
If the GitHub Pages site does not update:
- Check the GitHub Actions tab.
- Open the failed workflow.
- Read the first error, not just the final error.
- Confirm all linked files exist in the repo.
- Confirm
_quarto.ymlhas not been broken. - Re-render locally if needed.
1.9 Working principle
The deployed site should be reproducible from the tracked repository contents and approved public outputs.