Restructure: 'mcpd config' related commands (#52) #11
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy Docs | |
on: | |
push: | |
branches: [main] | |
paths: | |
- "cmd/**" | |
- "docs/**" | |
- "tools/docsgen/**" | |
workflow_dispatch: | |
permissions: | |
contents: write | |
jobs: | |
docs: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
- name: Set up Go (from go.mod) | |
uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0 | |
with: | |
go-version-file: go.mod | |
- name: Install the latest version of uv | |
uses: astral-sh/setup-uv@v6 | |
with: | |
python-version: 3.12 | |
activate-environment: true | |
- run: uv pip install pip mkdocs mkdocs-material | |
- name: Generate CLI docs | |
run: make docs-cli | |
- name: Update MkDocs navigation | |
run: make docs-nav | |
- name: Verify docs build | |
run: uv run mkdocs build --strict | |
- name: Deploy to GitHub Pages | |
run: uv run mkdocs gh-deploy --force | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |