GitHub Action
Check an Archidocs Workspace, build its static viewer site with past Bundles, and publish it to GitHub Pages or as a PR preview.
Use it as chalharb/archidocs@<ref> in a workflow that checks out with full history (fetch-depth: 0).
Inputs
Section titled “Inputs”| Input | Default | Description |
|---|---|---|
working-directory |
. |
Where to run Archidocs; the Workspace is found from here, as archidocs check finds it. |
out |
_site |
The site folder, relative to working-directory. |
keep |
200 |
Past Bundles to keep, latest first, plus every tagged Revision; a count or all. |
images |
false |
Also render every Saved View to views/<view-id>.svg in the site, for wikis and READMEs. |
preview |
false |
Build a PR preview (archidocs build --preview) and upload it as a workflow artifact instead of deploying to Pages. |
base |
${{ github.base_ref }} |
The preview’s base branch, read from origin/<base>; defaults to the PR’s base branch. |
deploy |
true |
Deploy the site to GitHub Pages. It only ever deploys on a push to the default branch or a tag. |
version |
empty | The archidocs npm version to run, such as 1.2.0. Empty runs the version this Action was checked out at. |
node-version |
24 |
The Node.js version to set up. |
Outputs
Section titled “Outputs”| Output | Description |
|---|---|
site |
The site folder’s path. |
page-url |
The deployed site’s URL, when it was deployed. |