-
-
Notifications
You must be signed in to change notification settings - Fork 28
77 lines (68 loc) · 2.25 KB
/
docs.yml
File metadata and controls
77 lines (68 loc) · 2.25 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
name: Docs
on:
push:
branches:
- main
- master
pull_request:
branches:
- main
- master
# workflow_run:
# workflows: ['Test']
# types:
# - completed
jobs:
build:
runs-on: ubuntu-latest
env:
TURBO_TOKEN: ${{ secrets.VERCEL_TOKEN }}
TURBO_TEAM: ${{ secrets.VERCEL_TEAM }}
TURBO_CACHE_KEY: ubuntu-latest-16 # reuse cache key from ci workflow
NODE_OPTIONS: '--max_old_space_size=4096'
steps:
- uses: actions/checkout@v2
- name: Install pnpm
uses: pnpm/action-setup@v2.2.1
- name: Use Node.js
uses: actions/setup-node@v2
with:
node-version: 16.x
registry-url: https://registry.npmjs.org/
cache: pnpm
- name: Install Dependencies and build all packages
run: pnpm bootstrap
# - name: deploy docs to vercel
# uses: BetaHuhn/deploy-to-vercel-action@v1
# # see: https://github.com/BetaHuhn/deploy-to-vercel-action
# with:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}
# VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
# VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID_DOC_SITE }}
# # for team settings
# VERCEL_SCOPE: ${{ secrets.VERCEL_ORG_ID }}
# # the docs build dist folder
# WORKING_DIRECTORY: ./packages/doc/.vuepress/dist
# # bind domains
# # ALIAS_DOMAINS: |
# # docs.vr360.com
# # docs.vr360.cn
- name: deploy docs to vercel
uses: amondnet/vercel-action@v20
# see: https://github.com/amondnet/vercel-action
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
vercel-token: ${{ secrets.VERCEL_TOKEN }}
vercel-org-id: ${{ secrets.VERCEL_ORG_ID }}
vercel-project-id: ${{ secrets.VERCEL_PROJECT_ID_DOC_SITE }}
# for team settings
scope: ${{ secrets.VERCEL_ORG_ID }}
# just like npx vercel --prod
vercel-args: '--prod'
# the docs build dist folder
working-directory: ./packages/doc/.vuepress/dist
# bind domains
# alias-domains: |
# docs.vr360.com
# docs.vr360.cn