Skip to content

docs: add doc - support ts import esm #133

docs: add doc - support ts import esm

docs: add doc - support ts import esm #133

Workflow file for this run

name: Deploy docs-zh-cn to Vercel
env:
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_DOCS_ZH_CN_PROJECT_ID }}
on:
push:
branches:
- main
paths:
- docs/zh-cn/**
workflow_dispatch:
jobs:
Deploy-Production:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
cache: yarn
cache-dependency-path: docs/zh-cn/yarn.lock
- name: Install Vercel CLI
run: yarn global add vercel@latest
- name: Build Project and Deploy to Vercel
working-directory: ./docs/zh-cn
run: |
vercel pull --yes --environment=production --token=${{ secrets.VERCEL_DEPLOY_TOKEN }}
vercel build --prod --token=${{ secrets.VERCEL_DEPLOY_TOKEN }}
vercel deploy --prebuilt --prod --token=${{ secrets.VERCEL_DEPLOY_TOKEN }}
DocSearch-Crawl:
needs: Deploy-Production
runs-on: ubuntu-latest
steps:
- name: Algolia crawler creation and crawl
uses: algolia/[email protected]
id: algolia_crawler
with:
crawler-user-id: ${{ secrets.DOCSEARCH_DOCS_CRAWLER_USER_ID }}
crawler-api-key: ${{ secrets.DOCSEARCH_DOCS_CRAWLER_API_KEY }}
algolia-app-id: ${{ secrets.DOCSEARCH_DOCS_ZH_CN_ALGOLIA_APP_ID }}
algolia-api-key: ${{ secrets.DOCSEARCH_DOCS_ZH_CN_ALGOLIA_API_KEY }}
site-url: 'https://docs-cn.aircode.io'
crawler-name: cn-aircode