# Build and deploy Material for MkDocs to GitHub Pages name: Deploy docs on: push: branches: - main workflow_dispatch: permissions: contents: write jobs: deploy: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - name: Set up Python uses: actions/setup-python@v5 with: python-version: "3.x" - name: Install MkDocs and Material run: pip install "mkdocs-material>=9.0.0,<10" "mkdocs-exclude>=1.0.0" - name: Deploy to GitHub Pages run: mkdocs gh-deploy --force