-
Notifications
You must be signed in to change notification settings - Fork 2
49 lines (37 loc) · 1.01 KB
/
build-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
45
46
47
48
49
on:
push:
branches:
- main
name: Build documentation
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Node
uses: actions/setup-node@v3
with:
node-version: 16
- name: Restore the node modules
uses: actions/cache@v3
with:
path: '**/node_modules'
key: modules-${{ hashFiles('**/package.json') }}
- name: Install JSDoc
run: npm i --include-dev
- name: Run JSDoc
run: npm run jsdoc
- name: create builds
run: yarn build
- name: copy build to app
run: cp -r dist/* app
- name: copy docs to app
run: cp -r docs/built/* app/docs
- name: copy assets to docs
run: cp -r assets app/docs
- name: GH Pages Deployment
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: gh-pages # The branch the action should deploy to.
folder: ./app
clean: true # Automatically remove deleted files from the deploy branch