deploy-docs.yml.disabled 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. name: Deploy Docs
  2. on:
  3. workflow_dispatch:
  4. permissions:
  5. contents: write
  6. jobs:
  7. deploy-gh-pages:
  8. runs-on: ubuntu-latest
  9. strategy:
  10. matrix:
  11. node-version: [22.x]
  12. env:
  13. DEPLOY_BRANCH: gh-pages
  14. steps:
  15. - name: Checkout
  16. uses: actions/checkout@v4
  17. with:
  18. fetch-depth: 0
  19. # if your docs needs submodules, uncomment the following line
  20. # submodules: true
  21. - name: Install pnpm
  22. uses: pnpm/action-setup@v4
  23. with:
  24. run_install: true
  25. version: 8
  26. - name: Setup Node.js
  27. uses: actions/setup-node@v4
  28. with:
  29. node-version: ${{ matrix.node-version }}
  30. cache: pnpm
  31. - name: Build
  32. env:
  33. NODE_OPTIONS: --max_old_space_size=8192
  34. run: |-
  35. pnpm run build-docs
  36. > www/docs/.vuepress/dist/.nojekyll
  37. - name: Deploy on GH Pages
  38. uses: JamesIves/github-pages-deploy-action@v4
  39. with:
  40. branch: ${{ env.DEPLOY_BRANCH }}
  41. folder: www/docs/.vuepress/dist