Site¶
site.yml builds and optionally deploys documentation sites.
Generated When¶
Generated when site_generator is mkdocs or jekyll.
No site workflow is generated when site_generator is none.
Runs On¶
- Pushes to
main - Release
publishedevents for the MkDocs release job
Calls¶
For MkDocs:
See mkdocs_site.yml for the reusable workflow
contract.
For Jekyll:
See jekyll_site.yml for the reusable workflow
contract.
Permissions¶
contents: writepages: writeid-token: write
Behavior¶
- On
mainpushes, builds and deploys the configured site. - For MkDocs, release publishes run a second job through
mkdocs_site.yml. - When
do_releasesis enabled for MkDocs: mainpublishes thedevversion.- release publishes publish
latestwithrelease-tagset to the release tag. - Jekyll site workflows do not publish versioned docs.