Skip to content

Build and Deploy Docs #252

Build and Deploy Docs

Build and Deploy Docs #252

Workflow file for this run

name: Build and Deploy Docs
on:
push:
branches:
- master
- main
workflow_dispatch:
schedule:
- cron: '0 0 * * *' # Runs every day at midnight UTC
permissions:
contents: write
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Cache pip dependencies
uses: actions/cache@v4
with:
key: ${{ github.ref }}
path: .cache
- name: Install dependencies
run: |
pip install --upgrade pip
pip install mkdocs mkdocs-material pymdown-extensions
- name: Deploy MkDocs site
run: mkdocs gh-deploy --force