-
-
Notifications
You must be signed in to change notification settings - Fork 23
40 lines (33 loc) · 888 Bytes
/
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
name: Docs
on:
release:
types: [published]
workflow_dispatch:
jobs:
docs:
name: Generate & Deploy docs
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
name: Install pnpm
with:
version: 9
- name: Install Node v18
uses: actions/setup-node@v4
with:
node-version: 18.x
cache: 'pnpm'
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Run TypeDoc
run: pnpm run docs
- name: Copy over public files
run: cp docs/public/* docs/out/ -r
- name: Deploy
uses: JamesIves/github-pages-deploy-action@4.1.1
with:
branch: gh-pages
folder: docs/out
commit-message: "Update documentation [${{ github.sha }}]"