Skip to content
Primer printing platePrimer

Deploy the Primer catalog

The catalog lives at otherhours-primer.pages.dev. The same build serves the design kit and its current lock.

The checks job in otherhours/primer installs dependencies, verifies tokens, runs the tests and builds the static catalog. It saves site/ as a pipeline artifact. Merge requests can download this artifact for review.

After a push to protected main, deploy-pages uploads the checked artifact to the Cloudflare Pages Direct Upload project otherhours-primer. Set the Pages production branch to main. In GitLab CI/CD settings, provide CLOUDFLARE_ACCOUNT_ID and a masked, protected CLOUDFLARE_API_TOKEN with Pages edit access for that account. Scope deployment credentials to the production environment.

Verify the production deployment by matching the commit in the Pages dashboard to the GitLab pipeline SHA and opening the design kit link above.

Run npm ci, npm run verify, python3 -m unittest discover -s tests -p 'test_*.py', and npm run site:build. Use npm run site:preview to inspect the catalog. The build copies the manifesto redirects from catalog/redirects.txt to site/_redirects for Pages.

PRIMER_SITE_URL overrides the canonical origin and PRIMER_SITE_BASE sets the base path for a subdirectory build.