Skip to content

feat: add self-update command #10

feat: add self-update command

feat: add self-update command #10

Workflow file for this run

# docs.yml — regenerate the command reference and publish the MkDocs site to gh-pages.
# Auto-runs when the docs, the command source, or the mkdocs config change; also manually
# dispatchable so the very first deploy (which creates the gh-pages branch) can be kicked off.
name: Docs
on:
push:
branches: [main]
paths: ['docs/**', 'commands/**', 'mkdocs.yml']
workflow_dispatch:
permissions:
contents: write # gh-pages push
env:
GOOGLE_ANALYTICS_KEY: ${{ vars.GOOGLE_ANALYTICS_KEY }}
jobs:
docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with: { go-version: stable }
- uses: actions/setup-python@v5
with: { python-version: '3.x' }
- run: pip install mkdocs-material
- run: make docs-gen
- run: mkdocs gh-deploy --force