Skip to content

Fix: reset search, filters, sort and pagination when switching direct… #79

Fix: reset search, filters, sort and pagination when switching direct…

Fix: reset search, filters, sort and pagination when switching direct… #79

Workflow file for this run

name: Deploy to GitHub Pages
on:
push:
branches:
- main
pull_request:
types: [closed]
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: pages
cancel-in-progress: true
jobs:
build:
if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.pull_request.merged == true)
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20
- name: Install dependencies
run: |
cd llm-eval-viewer
npm install
- name: Build
run: |
cd llm-eval-viewer
npm run build
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: llm-eval-viewer/dist
deploy:
needs: build
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4