Skip to content

feat: docs ai

feat: docs ai #120

Workflow file for this run

name: 'Deploy(main)'
on:
push:
branches:
- main
pull_request:
types: [ opened, edited, synchronize, reopened ]
branches:
- main
jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
- run: npm i
- run: npm test
- run: npm run lint
- run: npm run stylelint
- run: npm run typecheck
deploy:
needs: check
name: 'Deploy to vercel'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
# https://github.com/marketplace/actions/netlify-deploy
# - name: deploy to netlify
# uses: jsmrcaga/action-netlify-deploy@v1.8.0
# with:
# NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_TOKEN }}
# NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
# NETLIFY_DEPLOY_TO_PROD: true
# use_nvm: false
# build_command: 'npm run build:docs'
# build_directory: 'docs/docs/.vitepress/dist'
# https://github.com/marketplace/actions/vercel-action
- name: deploy to vercel
uses: amondnet/vercel-action@v25
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
vercel-args: '--prod'
vercel-token: ${{ secrets.VERCEL_TOKEN }}
vercel-org-id: ${{ secrets.VERCEL_ORG_ID }}
vercel-project-id: ${{ secrets.VERCEL_PROJECT_ID }}