playground: add title and meta tags (#785) #1712
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: [main] | |
| tags: ["**"] | |
| pull_request: {} | |
| jobs: | |
| build-cpp-docs: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - uses: ssciwr/doxygen-install@v1 | |
| with: | |
| version: "1.13.2" | |
| - uses: astral-sh/setup-uv@v7 | |
| - run: make docs | |
| working-directory: cpp | |
| - name: Upload artifact | |
| uses: actions/upload-artifact@v5 | |
| with: | |
| name: cpp | |
| path: ./cpp/build/docs/html | |
| if-no-files-found: error | |
| build-python-docs: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - uses: actions/setup-python@v6 | |
| with: | |
| python-version: "3.13" | |
| - run: corepack enable | |
| - uses: actions/setup-node@v6 | |
| with: | |
| node-version: 22 | |
| cache: yarn | |
| - uses: astral-sh/setup-uv@v7 | |
| - run: make -f Container.mk docs-python | |
| - name: Upload artifacts | |
| uses: actions/upload-artifact@v5 | |
| with: | |
| name: python | |
| path: python/foxglove-sdk/python/docs/_build | |
| if-no-files-found: error | |
| deploy-docs: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| needs: [build-cpp-docs, build-python-docs] | |
| if: startsWith(github.ref, 'refs/tags/sdk/v') | |
| steps: | |
| - name: Download artifacts | |
| uses: actions/download-artifact@v6 | |
| with: | |
| path: artifacts | |
| - run: test -d artifacts/python | |
| - run: test -d artifacts/cpp | |
| - name: Deploy to GitHub Pages | |
| uses: peaceiris/actions-gh-pages@v4 | |
| with: | |
| publish_branch: gh-pages | |
| github_token: ${{ secrets.GITHUB_TOKEN }} | |
| publish_dir: artifacts/ | |
| force_orphan: true |