obus/.github/workflows/moduledocs.yml

30 lines
991 B
YAML
Raw Normal View History

2021-07-31 03:55:34 +02:00
name: Module documentation
on: [push, pull_request]
jobs:
moduledocs:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v2
2021-07-31 05:55:15 +02:00
- uses: actions/cache@v2
id: cache-id
with:
path: ${{ runner.temp }}/cache-docs
key: ${{ runner.os }}-cache-build-docs-key-v1.0
- uses: airvzxf/cache-anything-new-action@60f610a30a315bf6b4dca9d4c5c2abc501d95d65
with:
script: 'install_docs_deps.sh'
is_cached: ${{ steps.cache-id.outputs.cache-hit }}
cache: ${{ runner.temp }}/cache-docs
snapshot: '/'
exclude: '/boot /data /dev /mnt /proc /run /sys'
2021-07-31 03:55:34 +02:00
- 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