setup-lisp/.github/actions/build-docs/action.yml
2021-02-07 02:56:54 +03:00

52 lines
1.1 KiB
YAML

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:
- name: Install Documentation Builder
shell: bash
run: |
echo ::group::Install Documentation Builder
echo 'github docs-builder 40ants/docs-builder' >> qlfile
qlot update
qlot exec ros install docs-builder
echo ::endgroup::
- name: Build Docs
id: build-docs
shell: bash
run: |
set -Eeuo pipefail
echo ::group::Build Docs
build-docs ${{ inputs.asdf-system }} output.dir
echo ::endgroup::
- name: Upload Docs
shell: bash
run: |
set -Eeuo pipefail
echo ::group::Upload Docs
echo 'Before upload'
git status
${{ github.action_path }}/upload.ros "$(cat output.dir)"
echo 'After upload'
git status
echo ::endgroup::
env:
GITHUB_TOKEN: ${{ github.token }}