Skip to content

Remove unused MkDocs workflow and Use Latest Workflow from Meta Repo #22

Remove unused MkDocs workflow and Use Latest Workflow from Meta Repo

Remove unused MkDocs workflow and Use Latest Workflow from Meta Repo #22

name: MkDocs build and deploy
on:
workflow_dispatch:
push:
branches: [ main, mkdocs ]
pull_request:
branches: [ main ]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: "recursive"
- uses: actions/setup-python@v5
with:
python-version: 3.x
- run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
- uses: actions/cache@v4
with:
key: mkdocs-material-${{ env.cache_id }}
path: .cache
restore-keys: |
mkdocs-material-
- run: pip install mkdocs-material # Installs latest from pip
- run: mkdocs build
- name: Upload pages artifact
uses: actions/upload-pages-artifact@v3
with:
name: "github-pages"
path: "./site"