name: Publish docs via GitHub Pages on: push: branches: - main - dev - docs/* jobs: build: name: Deploy docs runs-on: ubuntu-latest steps: - name: Checkout code uses: actions/checkout@v4 with: fetch-depth: 0 ssh-key: ${{ secrets.DEPLOY_KEY }} - name: Set up Python uses: actions/setup-python@v5 with: python-version: '3.11' - name: Install dependencies run: pip install mkdocs-material - name: Prepare external docs run: python .github/scripts/prepare_docs.py - name: Configure Git identity run: | git config --global user.name "github-actions[bot]" git config --global user.email "github-actions[bot]@users.noreply.github.com" - name: Deploy to GitHub Pages run: mkdocs gh-deploy --force