Skip to content

feat: add results panel and collapsible sidebar panels #10

feat: add results panel and collapsible sidebar panels

feat: add results panel and collapsible sidebar panels #10

Workflow file for this run

name: Deploy GitHub Pages
on:
push:
pull_request:
types: [opened, synchronize, reopened]
permissions:
contents: write
concurrency:
group: pages-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
deploy:
runs-on: ubuntu-latest
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 24
cache: yarn
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Build site
run: yarn build
- name: Prepare Pages content
env:
DEFAULT_BRANCH: ${{ github.event.repository.default_branch }}
EVENT_NAME: ${{ github.event_name }}
PR_NUMBER: ${{ github.event.pull_request.number }}
REF_NAME: ${{ github.ref_name }}
run: |
rm -rf .pages
mkdir -p .pages
if [ "$EVENT_NAME" = "pull_request" ]; then
TARGET_DIR=".pages/pr-preview/pr-$PR_NUMBER"
elif [ "$REF_NAME" = "$DEFAULT_BRANCH" ]; then
TARGET_DIR=".pages"
else
TARGET_DIR=".pages/branch-preview/$REF_NAME"
fi
mkdir -p "$TARGET_DIR"
cp -R dist/. "$TARGET_DIR/"
- name: Deploy to gh-pages
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_branch: gh-pages
publish_dir: ./.pages
keep_files: true