Skip to content

Knowledge website (knowledge-website.yaml)

Gha workflowreferenceworkflows/knowledge-website

Nobody has checked this yet

still a draft

Written 2026-10-28 by ktl-librarian (automation).

The full record
Checks
none recorded
Sources
Pointed to by
Graph
Open this concept in the knowledge graph
IRI
https://w3id.org/lmodel/github-actions/knowledge/workflows/knowledge-website
Licence
CC BY 4.0
Files
MarkdownJSON-LDSource on GitHubHistory on GitHub

Knowledge website (knowledge-website.yaml)

Section titled “Knowledge website (knowledge-website.yaml)”

.github/workflows/knowledge-website.yaml is the workflow named “Knowledge website”. It builds the site in website/ and publishes the default branch’s build to GitHub Pages.1 NOTICE says that it derives from the ktl-website templates of the Knowledge Trust Ladder (KTL) repository.2

It runs on a push or a pull request that touches the site, the bundle, the README, docs/, the changelog, llms.txt, .linkml/, a justfile, a pyproject.toml, a uv.lock or the workflow itself. It also runs every Monday at 05:23 UTC and by hand. A header comment says that the weekly run rebuilds the site from the default branch, to catch a change that no push to those paths brings, such as the changelog’s promotion, whose commit skips CI.

  • build, named “Build the site (read-only)”, runs with contents: read. A push builds on the default branch only, and a pull request or a dispatch always builds. It installs the lokf toolkit that the sidecar pins and Node.js, installs just when the site builds a folder with it, and then runs npm run build, which checks the links between the site’s pages.
  • deploy, named “Deploy to GitHub Pages”, holds pages: write and id-token: write, and runs only harden-runner and GitHub’s own deploy-pages action. It runs for the default branch once the repository variable KNOWLEDGE_WEBSITE_ENABLED is true. Until then the workflow builds but deploys nothing.

A header comment says to tell Pages once to take its site from Actions before setting the variable, and to keep the variable unset while another publisher still deploys Pages, since two publishers overwrite each other’s site. github-actions documentation site describes the site.

  1. .github/workflows/knowledge-website.yaml, the header comment, the on key and both jobs ↩

  2. NOTICE, the Knowledge bundle section ↩