Skip to content

Commit

Permalink
ci: add docs build to GHA
Browse files Browse the repository at this point in the history
Signed-off-by: Henry Schreiner <[email protected]>
  • Loading branch information
henryiii committed Jun 28, 2023
1 parent 335ca29 commit 6876034
Showing 1 changed file with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Docs

on:
pull_request:
push:
branches:
- main

jobs:
apidocs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- uses: mattnotmitt/doxygen-action@v1
with:
doxyfile-path: ./docs/Doxyfile

- uses: actions/upload-artifact@v3
with:
name: api-docs
path: html

gitbook:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- uses: actions/setup-node@v3
with:
node-version: 16

- name: Install requirements
run: |
npm install
- name: Build book
run: |
npx gitbook build . public
npx gitbook pdf . public/cli11.pdf
- uses: actions/upload-artifact@v3
with:
name: gitbook
path: public


0 comments on commit 6876034

Please sign in to comment.