name: Deploy Docs on: workflow_dispatch: permissions: contents: write jobs: deploy-gh-pages: runs-on: ubuntu-latest strategy: matrix: node-version: [22.x] env: DEPLOY_BRANCH: gh-pages steps: - name: Checkout uses: actions/checkout@v4 with: fetch-depth: 0 # if your docs needs submodules, uncomment the following line # submodules: true - name: Install pnpm uses: pnpm/action-setup@v4 with: run_install: true version: 8 - name: Setup Node.js uses: actions/setup-node@v4 with: node-version: ${{ matrix.node-version }} cache: pnpm - name: Build env: NODE_OPTIONS: --max_old_space_size=8192 run: |- pnpm run build-docs > www/docs/.vuepress/dist/.nojekyll - name: Deploy on GH Pages uses: JamesIves/github-pages-deploy-action@v4 with: branch: ${{ env.DEPLOY_BRANCH }} folder: www/docs/.vuepress/dist