name: Deploy docs to GitHub Pages on: push: branches: - main paths: - "apps/docs/**" - ".github/workflows/docs-pages.yml" - ".github/actions/setup-node-pnpm/**" - "package.json" - "pnpm-lock.yaml" - "pnpm-workspace.yaml" workflow_dispatch: concurrency: group: docs-pages cancel-in-progress: true permissions: contents: read pages: write id-token: write jobs: build: runs-on: ubuntu-latest steps: - name: Checkout code uses: actions/checkout@v4 - name: Setup Node.js and pnpm uses: ./.github/actions/setup-node-pnpm with: install-args: "--frozen-lockfile" - name: Run type check run: pnpm --filter @roo-code/docs check-types - name: Run lint run: pnpm --filter @roo-code/docs lint - name: Build docs run: pnpm --filter @roo-code/docs build - name: Upload Pages artifact uses: actions/upload-pages-artifact@v3 with: path: apps/docs/build deploy: runs-on: ubuntu-latest needs: build environment: name: github-pages url: ${{ steps.deployment.outputs.page_url }} steps: - name: Deploy to GitHub Pages id: deployment uses: actions/deploy-pages@v4