-
Notifications
You must be signed in to change notification settings - Fork 1
44 lines (37 loc) · 1.02 KB
/
Copy pathdeploy-docs.yml
File metadata and controls
44 lines (37 loc) · 1.02 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
name: Deploy Documentation
on:
push:
branches: [v3]
pull_request:
branches: [v3]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'yarn'
- name: Install dependencies
run: |
yarn install --frozen-lockfile
yarn type-check
- name: Build documentation
run: |
yarn docs:build --debug
env:
NODE_ENV: production
- name: Deploy to Vercel
uses: amondnet/vercel-action@v25
with:
vercel-token: ${{ secrets.VERCEL_TOKEN }}
vercel-org-id: ${{ secrets.VERCEL_ORG_ID }}
vercel-project-id: ${{ secrets.VERCEL_PROJECT_ID }}
working-directory: ./
vercel-args: '--prod'
github-comment: true
github-deployment: false
if: github.ref == 'refs/heads/v3' && github.event_name == 'push'