chore: update .gitignore to exclude pet-benchmark directory #42
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: Deploy VitePress site to Pages | |
| on: | |
| push: | |
| branches: [main, v2] | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| pages: write | |
| id-token: write | |
| concurrency: | |
| group: pages | |
| cancel-in-progress: false | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout main | |
| uses: actions/checkout@v7 | |
| with: | |
| ref: main | |
| path: main | |
| fetch-depth: 0 | |
| - name: Checkout v2 | |
| uses: actions/checkout@v7 | |
| with: | |
| ref: v2 | |
| path: v2 | |
| fetch-depth: 0 | |
| - name: Setup Node | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: 24 | |
| cache: npm | |
| cache-dependency-path: main/package-lock.json | |
| - name: Setup Pages | |
| uses: actions/configure-pages@v6 | |
| - name: Build main docs (v1.x — stable) | |
| working-directory: main | |
| run: | | |
| npm ci | |
| npm run docs:build | |
| - name: Build v2 docs (v2.0 — next) | |
| working-directory: v2 | |
| run: | | |
| npm ci | |
| npm run docs:build | |
| - name: Assemble combined site | |
| run: | | |
| mkdir -p site | |
| cp -r main/docs/.vitepress/dist/. site/ | |
| mkdir -p site/v2 | |
| cp -r v2/docs/.vitepress/dist/. site/v2/ | |
| - name: Upload artifact | |
| uses: actions/upload-pages-artifact@v5 | |
| with: | |
| path: site | |
| deploy: | |
| # Every branch pushed above (main, v2) must also be listed in Settings > | |
| # Environments > github-pages > Deployment branches, or this job 403s. | |
| environment: | |
| name: github-pages | |
| url: ${{ steps.deployment.outputs.page_url }} | |
| needs: build | |
| runs-on: ubuntu-latest | |
| name: Deploy | |
| steps: | |
| - name: Deploy to GitHub Pages | |
| id: deployment | |
| uses: actions/deploy-pages@v5 |