docs-pages.yml 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. name: Deploy documentation
  2. on:
  3. push:
  4. branches: [master]
  5. paths:
  6. - '.github/workflows/docs-pages.yml'
  7. - 'docs/**'
  8. - 'package.json'
  9. - 'pnpm-lock.yaml'
  10. - 'pnpm-workspace.yaml'
  11. - 'scripts/project-doc-site.ts'
  12. - 'scripts/project-doc-site.spec.ts'
  13. - 'website/**'
  14. workflow_dispatch:
  15. concurrency:
  16. group: github-pages
  17. cancel-in-progress: false
  18. permissions:
  19. contents: read
  20. env:
  21. PRIMARY_NODE_VERSION: '24'
  22. # CI runs must never report to the production telemetry endpoint baked
  23. # into apps/cli/cordis.yml (AppCLIEntry disables the row when set).
  24. DSH_TELEMETRY_DISABLED: '1'
  25. jobs:
  26. build:
  27. runs-on: ubuntu-latest
  28. permissions:
  29. contents: read
  30. pages: read
  31. steps:
  32. - uses: actions/checkout@v6
  33. - uses: pnpm/action-setup@v4
  34. - uses: actions/setup-node@v6
  35. with:
  36. node-version: ${{ env.PRIMARY_NODE_VERSION }}
  37. cache: pnpm
  38. - name: Install (immutable)
  39. run: pnpm install --frozen-lockfile
  40. - name: Configure Pages
  41. id: pages
  42. uses: actions/configure-pages@v6
  43. - name: Verify and build documentation
  44. env:
  45. DOCS_BASE: ${{ steps.pages.outputs.base_path }}/
  46. run: pnpm run doc-sync
  47. - name: Upload Pages artifact
  48. uses: actions/upload-pages-artifact@v5
  49. with:
  50. path: website/.dist
  51. deploy:
  52. needs: build
  53. runs-on: ubuntu-latest
  54. permissions:
  55. pages: write
  56. id-token: write
  57. environment:
  58. name: github-pages
  59. url: ${{ steps.deployment.outputs.page_url }}
  60. steps:
  61. - name: Deploy to GitHub Pages
  62. id: deployment
  63. uses: actions/deploy-pages@v5