Build a MkDocs site and upload a Pages-compatible artifact for downstream testing or deployment.
jobs:
site:
uses: athackst/ci/.github/workflows/mkdocs_site.yml@main
with:
version: dev
| Name | Description | Default |
|---|---|---|
artifact-name |
(optional) Artifact name for the built site. | github-pages |
version |
(optional) Version path to append to the site base path, for example dev or 1.2.3. |
"" |
contents: read in the caller job.mkdocs-config action before building the site.host, base-path, version, and artifact-name outputs for downstream workflows such as HTMLProofer and site deploy.version is non-empty, the build output is prepared under a versioned base path such as /repo/dev or /repo/1.2.3.Build site:
jobs:
site:
uses: athackst/ci/.github/workflows/mkdocs_site.yml@main
Build versioned docs:
jobs:
site:
uses: athackst/ci/.github/workflows/mkdocs_site.yml@main
with:
version: dev