chore(firmware): add headless Teensy flash workflow #22
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: docs | |
| on: | |
| push: | |
| branches: [master] | |
| paths: | |
| - "docs/**" | |
| - "mkdocs.yml" | |
| workflow_dispatch: {} | |
| concurrency: | |
| group: docs-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| deploy: | |
| runs-on: ubuntu-24.04 | |
| timeout-minutes: 10 | |
| permissions: | |
| contents: write | |
| pages: write | |
| steps: | |
| # 1. Checkout full history so mkdocs can create gh-pages | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| # 2. Install Python + MkDocs + theme | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.12" | |
| - run: | | |
| python3 -m pip install --upgrade pip | |
| python3 -m pip install \ | |
| mkdocs-material \ | |
| mkdocs-git-revision-date-localized-plugin | |
| - run: mkdocs build --strict | |
| # 3. Configure git user (required for gh-deploy in CI) | |
| - run: | | |
| git config --global user.email "actions@github.com" | |
| git config --global user.name "GitHub Actions" | |
| # 4. Build & push to gh-pages (force overwrite) | |
| - run: mkdocs gh-deploy --clean --force --verbose |