2021-02-06 09:41:50 +00:00
|
|
|
name: 'Build Docs'
|
|
|
|
|
|
|
|
inputs:
|
|
|
|
asdf-system:
|
|
|
|
description: 'ASDF system to build system for'
|
|
|
|
required: true
|
|
|
|
qlfile-template:
|
|
|
|
description: "Djula template for qlfile. All environment variables are available in it's context"
|
|
|
|
required: false
|
|
|
|
|
|
|
|
runs:
|
|
|
|
using: composite
|
|
|
|
steps:
|
2021-02-06 09:59:05 +00:00
|
|
|
- name: Install Documentation Builder
|
|
|
|
shell: bash
|
|
|
|
run: |
|
|
|
|
echo ::group::Install Documentation Builder
|
2021-02-06 13:16:02 +00:00
|
|
|
|
|
|
|
echo 'github docs-builder 40ants/docs-builder' >> qlfile
|
|
|
|
|
|
|
|
qlot update
|
|
|
|
|
|
|
|
qlot exec ros install docs-builder
|
2021-02-06 09:59:05 +00:00
|
|
|
echo ::endgroup::
|
|
|
|
|
|
|
|
- name: Build Docs
|
2021-02-06 13:41:32 +00:00
|
|
|
id: build-docs
|
2021-02-06 09:59:05 +00:00
|
|
|
shell: bash
|
|
|
|
run: |
|
2021-02-06 13:50:31 +00:00
|
|
|
echo ::group::Build Docs
|
2021-02-06 13:59:46 +00:00
|
|
|
OUTPUT_DIR=`build-docs ${{ inputs.asdf-system }}`
|
2021-02-06 13:41:32 +00:00
|
|
|
|
|
|
|
echo "::set-output name=build-dir::${OUTPUT_DIR}"
|
2021-02-06 13:50:31 +00:00
|
|
|
echo ::endgroup::
|
2021-02-06 13:41:32 +00:00
|
|
|
|
|
|
|
- name: Upload Docs
|
|
|
|
shell: bash
|
|
|
|
run: |
|
2021-02-06 13:50:31 +00:00
|
|
|
echo ::group::Upload Docs
|
2021-02-06 13:41:32 +00:00
|
|
|
BUILD_DIR=${{ steps.build-docs.outputs.build-dir }}
|
|
|
|
|
|
|
|
${{ github.action_path }}/upload.ros "${BUILD_DIR}"
|
2021-02-06 13:50:31 +00:00
|
|
|
echo ::endgroup::
|