-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (44 loc) · 1.22 KB
/
deploy-docs.yml
File metadata and controls
52 lines (44 loc) · 1.22 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
name: Build Documentation
on:
push:
branches: [main, ray-rs]
paths:
- 'ray-docs/**'
- '.github/workflows/deploy-docs.yml'
pull_request:
paths:
- 'ray-docs/**'
workflow_dispatch:
jobs:
build:
runs-on: blacksmith-4vcpu-ubuntu-2404
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: 9
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'pnpm'
cache-dependency-path: ray-docs/pnpm-lock.yaml
- name: Install dependencies
run: pnpm install --frozen-lockfile
working-directory: ray-docs
- name: Build docs
run: pnpm build
working-directory: ray-docs
- name: Upload build artifact
uses: actions/upload-artifact@v4
with:
name: docs-build
path: ray-docs/.output
retention-days: 7
# Note: Deployment to Vercel is handled automatically via Vercel GitHub integration
# Connect this repo to Vercel at https://vercel.com/new and set:
# - Root Directory: ray-docs
# - Build Command: pnpm build
# - Output Directory: .output