Skip to content

Add Ref and Lens types #147

Add Ref and Lens types

Add Ref and Lens types #147

Workflow file for this run

name: Deploy to GitHub Pages
on:
pull_request:
types: [closed]
branches:
- main
workflow_dispatch: # Adds the manual trigger
permissions:
contents: write
pages: write
jobs:
deploy:
if: github.event_name == 'workflow_dispatch' || (github.event.pull_request.merged == true && github.event.pull_request.user.login == 'github-actions[bot]')
runs-on: ubuntu-latest
steps:
- name: Checkout code repository
uses: actions/checkout@v4
- name: Setup pnpm
uses: pnpm/action-setup@v4
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: '24.3.x'
cache: pnpm
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Cache turbo build setup
uses: actions/cache@v4
with:
path: .turbo
key: ${{ runner.os }}-turbo-${{ github.sha }}
restore-keys: |
${{ runner.os }}-turbo-
- name: Build
run: pnpm run build --filter="./apps/*"
- name: Merge apps build outputs
run: mv apps/playground2/dist apps/docs2/dist/playground2 && mv apps/builder/dist apps/docs2/dist/builder
- name: Deploy apps
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./apps/docs2/dist
destination_dir: .
publish_branch: gh-pages