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
|
2021-02-07 09:33:15 +00:00
|
|
|
ngrok-auth-token:
|
|
|
|
description: "A token to debug processes."
|
|
|
|
required: false
|
2021-02-06 09:41:50 +00:00
|
|
|
|
|
|
|
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
|
2021-02-07 09:24:36 +00:00
|
|
|
echo 'github ngrok 40ants/ngrok' >> qlfile
|
2021-02-06 13:16:02 +00:00
|
|
|
|
|
|
|
qlot update
|
|
|
|
|
|
|
|
qlot exec ros install docs-builder
|
2021-02-07 09:24:36 +00:00
|
|
|
qlot exec ros install ngrok
|
2021-02-06 09:59:05 +00:00
|
|
|
echo ::endgroup::
|
2021-02-06 21:45:22 +00:00
|
|
|
- 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::
|
2021-02-06 09:59:05 +00:00
|
|
|
|
2021-02-06 13:41:32 +00:00
|
|
|
- name: Upload Docs
|
|
|
|
shell: bash
|
|
|
|
run: |
|
2021-02-06 18:08:18 +00:00
|
|
|
set -Eeuo pipefail
|
2021-02-06 13:50:31 +00:00
|
|
|
echo ::group::Upload Docs
|
2021-02-06 23:56:54 +00:00
|
|
|
|
2021-02-06 21:36:51 +00:00
|
|
|
${{ github.action_path }}/upload.ros "$(cat output.dir)"
|
2021-02-06 23:56:54 +00:00
|
|
|
|
2021-02-06 13:50:31 +00:00
|
|
|
echo ::endgroup::
|
2021-02-06 21:21:24 +00:00
|
|
|
env:
|
|
|
|
GITHUB_TOKEN: ${{ github.token }}
|
2021-02-07 09:33:15 +00:00
|
|
|
NGROK_AUTH_TOKEN: ${{ inputs.ngrok-auth-token }}
|