-
Notifications
You must be signed in to change notification settings - Fork 1
51 lines (41 loc) · 1.02 KB
/
ci-docs.yml
File metadata and controls
51 lines (41 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
45
46
47
48
49
50
51
name: CI for Docs
on:
pull_request:
branches: [main]
types: [opened, synchronize, reopened, ready_for_review]
paths:
- docs/**
push:
branches: [main]
paths:
- docs/**
workflow_dispatch:
permissions:
contents: write
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
ci:
runs-on: ubuntu-slim
steps:
- name: Checkout
uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Set up pnpm
uses: pnpm/action-setup@v4.2.0
- name: Set up Node.js
uses: actions/setup-node@v6
with:
node-version: latest
cache: 'pnpm'
- name: Install dependencies
run: pnpm install
- name: Build Docs
run: pnpm build -F docs
- name: Deploy (push to main)
uses: JamesIves/github-pages-deploy-action@v4
if: github.event_name == 'push' || github.event_name == 'workflow_dispatch'
with:
folder: docs/.vitepress/dist