-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathaction.yml
More file actions
50 lines (47 loc) · 1.95 KB
/
action.yml
File metadata and controls
50 lines (47 loc) · 1.95 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: "Antora Site"
description: "Generate the Antora site with PlantUML and Kroki diagram support"
branding:
icon: book-open
color: yellow
inputs:
antora_playbook:
description: 'The Antora playbook file'
required: true
default: 'site.yaml'
site_sources_path:
description: 'The path relative to workspace root, where the asciidoc sources exits'
required: false
default: '.'
antora_generator:
description: 'Select generator to be used, currently supports the default "@antora/site-generator-default" or a custom generator path'
required: false
default: '@antora/site-generator-default'
antora_custom_generator_dependencies:
description: 'Enable installing Antora dependencies when using a custom generator'
required: false
default: 'false'
antora_additional_arguments:
description: 'Pass customized arguments when running Antora'
required: false
default: ''
runs:
using: 'composite'
steps:
- name: Set up Docker Compose
uses: docker/setup-compose-action@364cc21a5de5b1ee4a7f5f9d3fa374ce0ccde746 # v1.2.0
- name: Generate Antora site with PlantUML and Kroki
shell: bash
run: |
cd ${{ github.action_path }}
# Start diagram servers (PlantUML, Kroki, Mermaid)
docker compose up -d plantuml mermaid kroki
docker compose run --rm \
-e INPUT_SITE_SOURCES_PATH="${{ inputs.site_sources_path }}" \
-e INPUT_ANTORA_PLAYBOOK="${{ inputs.antora_playbook }}" \
-e INPUT_ANTORA_GENERATOR="${{ inputs.antora_generator }}" \
-e INPUT_ANTORA_CUSTOM_GENERATOR_DEPENDENCIES="${{ inputs.antora_custom_generator_dependencies }}" \
-e INPUT_ANTORA_ADDITIONAL_ARGUMENTS="${{ inputs.antora_additional_arguments }}" \
-e GITHUB_WORKSPACE="${{ github.workspace }}" \
-v "${{ github.workspace }}:${{ github.workspace }}" \
-w "${{ github.workspace }}" \
antora /entrypoint.sh