Skip to content

fix(deps): update superdoc (#82) #106

fix(deps): update superdoc (#82)

fix(deps): update superdoc (#82) #106

Workflow file for this run

name: Deploy Demos
on:
workflow_dispatch:
push:
branches: [main]
env:
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
jobs:
check:
name: Lint & Typecheck
runs-on: ubuntu-latest
defaults:
run:
working-directory: rag
steps:
- uses: actions/checkout@v6
- uses: oven-sh/setup-bun@v2
- run: bun install --frozen-lockfile
- run: bunx biome check .
- run: bunx tsc --noEmit
deploy-api:
name: Deploy API Worker
needs: check
runs-on: ubuntu-latest
defaults:
run:
working-directory: rag
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v4
with:
node-version: 22
- uses: oven-sh/setup-bun@v2
- run: bun install --frozen-lockfile
- run: bunx wrangler deploy
working-directory: rag/apps/api
deploy-web:
name: Deploy All Demos
needs: check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v4
with:
node-version: 22
- uses: oven-sh/setup-bun@v2
# Build DocRAG
- run: bun install --frozen-lockfile
working-directory: rag
- run: bunx vite build
working-directory: rag/apps/web
env:
VITE_API_URL: ${{ vars.VITE_API_URL }}
BASE_PATH: /docrag/
# Build eSign
- run: bun install --frozen-lockfile
working-directory: esign
- run: bunx vite build
working-directory: esign
env:
BASE_PATH: /esign/
# Build Template Builder
- run: bun install --frozen-lockfile
working-directory: template-builder
- run: bunx vite build
working-directory: template-builder
env:
BASE_PATH: /template-builder/
# Assemble dist
- run: |
mkdir -p dist/docrag dist/esign dist/template-builder
cp -r rag/apps/web/dist/* dist/docrag/
cp -r esign/dist/* dist/esign/
cp -r template-builder/dist/* dist/template-builder/
cp dist-landing/index.html dist/
cp -r functions dist/functions
# Deploy
- run: bunx wrangler pages deploy dist --project-name=superdoc-demos --commit-dirty=true