-
Notifications
You must be signed in to change notification settings - Fork 1
32 lines (24 loc) · 827 Bytes
/
Copy pathdocs.yml
File metadata and controls
32 lines (24 loc) · 827 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
name: Build and Deploy Docs
on:
push:
branches: [main]
jobs:
build-and-deploy:
runs-on: ubuntu-latest
env:
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: sudo apt-get update && sudo apt-get install -y doxygen cmake graphviz
- name: Configure CMake
run: make setup
- name: Build docs
run: make build-docs
- name: Install Vercel CLI
run: npm install -g vercel
- name: Pull Vercel project settings
run: vercel pull --yes --environment=production --token=${{ secrets.VERCEL_TOKEN }}
- name: Deploy to Vercel
run: vercel deploy docs/html --prod --token=${{ secrets.VERCEL_TOKEN }}