-
Notifications
You must be signed in to change notification settings - Fork 18
44 lines (37 loc) · 1.07 KB
/
ci-docs.yml
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: Build Docs
on:
push:
branches: ['main']
paths:
[
'client/**',
'docs/**',
'lib/**',
'programs/**',
]
workflow_dispatch:
jobs:
docs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Cache
uses: actions/cache@v2
id: node-cache
with:
path: node_modules
key: node-modules-${{ runner.os }}-${{ hashFiles('yarn.lock') }}
- name: Install dependencies
if: steps.node-cache.outputs.cache-hit != 'true'
run: yarn install --frozen-lockfile
- name: Build TS Client Docs
run: yarn typedoc client/ts/src/index.ts --readme none --out ./docs/ts/client/
- name: Build Rust Docs
run: cargo doc --no-deps --package manifest-jupiter --package manifest --package hypertree --target-dir ./docs/rs/ && rm -rf ./docs/rs/debug
- name: Deploy 🚀
uses: JamesIves/[email protected]
with:
branch: gh-pages
folder: docs
clean: false