actions: build documentation

This adds a new workflow for building the Gluon documentation.

In contrast to the existing build workflow, the documentation
is built for every branch, as it only takes around two minutes
to render the HTML documentation.
This commit is contained in:
David Bauer 2020-06-01 19:40:03 +02:00 committed by Martin Weinelt
parent d3107790dc
commit 29313c0944
1 changed files with 20 additions and 0 deletions

20
.github/workflows/build-docs.yml vendored Normal file
View File

@ -0,0 +1,20 @@
name: Build Documentation
on:
push:
pull_request:
types: [opened, synchronize, reopened]
jobs:
build-documentation:
name: docs
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Install Dependencies
run: sudo pip3 install sphinx-rtd-theme
- name: Build documentation
run: make -C docs html
- name: Archive build output
uses: actions/upload-artifact@v1
with:
name: docs_output
path: docs/_build/html