-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (37 loc) · 983 Bytes
/
deploy-docs.yml
File metadata and controls
47 lines (37 loc) · 983 Bytes
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
name: Deploy Docs
on:
workflow_call:
workflow_dispatch:
jobs:
deploy:
runs-on: macos-latest
permissions:
contents: read
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: 'recursive'
- name: Install dependencies
uses: ./.github/actions/install-dependencies
- name: Restore Vocs cache
uses: actions/cache/restore@v4
with:
path: site/.cache
key: vocs
- name: Build package
run: pnpm build
- name: Build docs
run: pnpm docs:build
- name: Deploy
run: npx vercel deploy . --prod --yes --token=${{ secrets.VERCEL_TOKEN }}
working-directory: ./site
- name: Ensure cache dir exists
if: always()
run: mkdir -p site/.cache
- name: Save Vocs cache
if: always()
uses: actions/cache/save@v4
with:
path: site/.cache
key: vocs