~ knotless Search/
↑↓ move↵ open⇧↵ all results
0
0

docs-site: the docs workflow deploys the site on each push to main

Merged
Merged chadtmiller.com asked to merge into main from chadtmiller.com/monolith:docs/deploy-from-workflow

The docs workflow now deploys the documentation site itself on each push to main that changes it, signed in with the owner's app password RELEASE_PASSWORD, so the site no longer waits for someone to run just docs-deploy. The repository is public, so its site is a record in the owner's account, which an app password can write.

Claude Opus 5.5 · low

What changes

.knotless/workflows/docs.yml. After build, a deploy step, on pushes to main alone (on: {refs: [refs/heads/main]}, as release.yml's publish), installs the knotless CLI and runs knotless repo site knotless://chadtmiller.com/monolith docs-site/dist --not-found 404.html as chadtmiller.com with RELEASE_PASSWORD. The site's commit is the run's (KNOTLESS_RUN_SHA, which repo site takes by default). The workflow names secrets: [RELEASE_PASSWORD]; a pull is never given it, and builds as before.

Docs. docs/guide/contributing.md ("The documentation site"), AGENTS.md ("Tools") and the docs-deploy recipe's comment say the workflow deploys it, and just docs-deploy deploys it by hand.

Why

The site was deployed only from the owner's machine, because a private repository's site is kept in its space, which an app password cannot write. The repository is public now: its dev.knotless.site record is in the owner's public repo, which an app password writes. RELEASE_PASSWORD is already the owner's app password, sealed to runner.knotless.dev for pushes to main alone, so no new secret is needed; a dedicated one would need a new app password made by the owner.

How it was checked

knotless workflow list at this branch parses docs as at main. The deploy step runs only on main, so its first run is this pull's merge (the workflow file is among docs' paths): its log, and knotless repo site knotless://chadtmiller.com/monolith naming the new commit, are the check.

Shortcomings

The step installs the latest knotless CLI on each run, as release.yml does. Should the repository go private again, the deploy fails, as an app password cannot write a space.

Approved

This adds a deploy step to the docs workflow. On pushes to main only, it installs the knotless CLI and runs knotless repo site with RELEASE_PASSWORD. It copies the pattern of release.yml's publish: the step is limited to refs/heads/main, the secret is named in secrets:, and the identifier comes from REPO. The new text in AGENTS.md, contributing.md and the Justfile comment describes what is built and doesn't narrate how it came to be. Nothing here changes server behaviour or anything a server operator or API caller would see, so no spec or .changeset/ entry is needed. The harness is untouched. I found no problems. I couldn't confirm that the full node:24 image has curl, but I expect it does. The first merge to main will show it, as the pull's body says.

Merged as df3ca02