Skip to content

Commit b2a1c61

Browse files
committed
.github: upload-docs: Generate and copy API docs
1 parent 60f73b1 commit b2a1c61

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

.github/workflows/upload-docs.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,17 @@ jobs:
4242
- name: Build docs
4343
run: make site
4444

45+
- name: Set up NodeJS
46+
uses: actions/setup-node@v2
47+
with:
48+
node-version: 16
49+
50+
- name: Generate API docs
51+
run: make apidoc-init apidoc
52+
53+
- name: Copy API docs to docs/ dir
54+
run: cp -r apidoc/_output/ docs/_build/html/docs/api
55+
4556
- name: Deploy
4657
uses: peaceiris/actions-gh-pages@v3
4758
with:

0 commit comments

Comments
 (0)