Add GitHub action to build docs

This commit is contained in:
redfast00 2021-07-31 03:55:34 +02:00
parent 5b63d93df3
commit 9d86e1d072
No known key found for this signature in database
GPG key ID: 5946E0E34FD0553C

19
.github/workflows/moduledocs.yml vendored Normal file
View file

@ -0,0 +1,19 @@
name: Module documentation
on: [push, pull_request]
jobs:
moduledocs:
runs-on: ubuntu-latest
steps:
- name: Install pandoc and python3
run: sudo apt-get install pandoc python3
- name: Check out repository code
uses: actions/checkout@v2
- name: Compile documentation
run: |
cd ${{ github.workspace }}/docs
python3 build.py
- name: Archive documentation as artifact
uses: actions/upload-artifact@v2
with:
name: moduledocs
path: ${{github.workspace}}/docs/docs.pdf