Skip to content

Generate api refs with typedoc #8

Generate api refs with typedoc

Generate api refs with typedoc #8

Workflow file for this run

name: Deploy API Docs Prod
on:
pull_request:
paths:
- 'langchain/**'
branches: ["main"]
workflow_dispatch: # Allows triggering the workflow manually in GitHub UI
# If another push to the same PR or branch happens while this workflow is still running,
# cancel the earlier run in favor of the next run.
#
# There's no point in testing an outdated version of the code. GitHub only allows
# a limited number of job runners to be active at the same time, so it's better to cancel
# pointless jobs early so that more useful jobs can run sooner.
concurrency:
group: exports-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
deploy-api-docs-prod:
name: Deploy Prod API Docs to Vercel
runs-on: ubuntu-latest
environment: Production
env:
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_API_DOCS_PROJECT_ID }}
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}
steps:
- uses: actions/checkout@v4
- name: Install Vercel CLI
run: npm install --global vercel@latest
- name: Change to api-docs directory
run: cd api-docs
- name: Pull Vercel Environment Information
run: vercel pull --yes --environment=production --token="$VERCEL_TOKEN"
- name: Build Project Artifacts
run: vercel build --prod --token="$VERCEL_TOKEN"
- name: Deploy Project Artifacts to Vercel
run: vercel deploy --prebuilt --prod --token="$VERCEL_TOKEN"