mirror of
https://github.com/kata-containers/kata-containers.git
synced 2026-01-24 22:15:40 +00:00
This commit adds a Github workflow for building a Github Pages site for the markdown files in the docs/ directory. Zensical is a new markdown-based static site generation framework built by the creators of Material for Mkdocs. https://zensical.org/ This commit does not clean the doc structure, so site navigation is initially going to be messy. Signed-off-by: LandonTClipp <11232769+LandonTClipp@users.noreply.github.com>
33 lines
750 B
YAML
33 lines
750 B
YAML
name: Documentation
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
permissions: {}
|
|
jobs:
|
|
deploy-docs:
|
|
name: deploy-docs
|
|
permissions:
|
|
contents: read
|
|
pages: write
|
|
id-token: write
|
|
environment:
|
|
name: github-pages
|
|
url: ${{ steps.deployment.outputs.page_url }}
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/configure-pages@v5
|
|
- uses: actions/checkout@v5
|
|
with:
|
|
persist-credentials: false
|
|
- uses: actions/setup-python@v5
|
|
with:
|
|
python-version: 3.x
|
|
- run: pip install zensical
|
|
- run: zensical build --clean
|
|
- uses: actions/upload-pages-artifact@v4
|
|
with:
|
|
path: site
|
|
- uses: actions/deploy-pages@v4
|
|
id: deployment
|