mirror of
https://github.com/nocobase/nocobase
synced 2024-11-15 17:46:36 +00:00
ca7af9c8cc
* feat: new version of the documentation * feat: add English catalog translation * Update quickstart.md * Update quickstart.zh-CN.md * Update quickstart.zh-CN.md * Update quickstart.zh-CN.md * Update quickstart.zh-CN.md * feat: update quickstart * update doc * update pepository api doc Co-authored-by: ChengLei Shao <chareice@live.com>
42 lines
1.0 KiB
YAML
42 lines
1.0 KiB
YAML
name: vercel
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- develop
|
|
- feature/docs
|
|
|
|
jobs:
|
|
deploy:
|
|
runs-on: ubuntu-18.04
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Setup Node
|
|
uses: actions/setup-node@v2.1.2
|
|
with:
|
|
node-version: '12.x'
|
|
|
|
- name: Cache dependencies
|
|
uses: actions/cache@v2
|
|
with:
|
|
path: ~/.npm
|
|
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
|
|
restore-keys: |
|
|
${{ runner.os }}-node-
|
|
|
|
- run: npm install
|
|
- run: npm run bootstrap
|
|
- run: echo "API_URL=${{ secrets.API_URL }}" >> .env
|
|
- run: npm run build-docs
|
|
|
|
- name: Deploy
|
|
uses: amondnet/vercel-action@v19
|
|
with:
|
|
vercel-token: ${{ secrets.VERCEL_TOKEN }} # Required
|
|
github-token: ${{ secrets.GITHUB_TOKEN }} #Optional
|
|
vercel-args: '--prod' #Optional
|
|
vercel-org-id: ${{ secrets.ORG_ID}} #Required
|
|
vercel-project-id: ${{ secrets.PROJECT_ID}} #Required
|
|
working-directory: ./dist
|