-
Notifications
You must be signed in to change notification settings - Fork 41
/
Copy pathaction.yml
62 lines (60 loc) · 2.9 KB
/
action.yml
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
51
52
53
54
55
56
57
58
59
60
61
62
name: asciidoctor-ghpages
author: Manoel Campos da Silva Filho
branding:
icon: book-open
color: blue
description: 'Build AsciiDoc GitHub Pages: renames resulting README.html to index.html. Generates an ebook.pdf or Reveal.js slides'
inputs:
source_dir:
description: 'Defines the source root directory from where AsciiDoc files will be built and other containing files will be published to gh-pages.'
default: '.'
required: false
asciidoctor_params:
description: 'Extra parameters to pass to the asciidoctor command to customize the process of building adoc files'
required: false
adoc_file_ext:
description: 'The extension you are using for your AsciiDoc Files'
default: '.adoc'
required: false
pdf_build:
description: 'Defines if a PDF ebook should be built along with the html files. That will generate an ebook.pdf file inside the gh-pages branch.'
default: 'false'
required: false
ebook_main_adoc_file:
description: 'Defines the name of the main AsciiDoc file that will be used if you are generating an ebook in PDF or any other supported format. For instance, if the main ebook file is "ebook.adoc", just inform "ebook" here.'
default: 'README'
required: false
slides_build:
description: 'Defines if a slides.html file should be built using AsciiDoc Reveal.js. The slides.html file is generated inside the gh-pages branch.'
default: 'false'
required: false
slides_main_adoc_file:
description: 'Defines the name of the main AsciiDoc file that will be used if you are generating slides with Reveal.js. For instance, if the slides file is "slides.adoc", just inform "slides" here.'
default: 'README'
required: false
slides_skip_asciidoctor_build:
description: 'If slides are being generated using AsciiDoc Reveal.js, you may not want to build the regular html files using the asciidoctor command, but just using the asciidoctor-revealjs command. In order to generate only the slides.html instead of the regular html files, set this config to true.'
default: 'false'
required: false
pre_build:
description: 'Any arbitrary shell command to be executed before the asciidoc build is started. Optional.'
default: 'echo "No pre build command provided."'
required: false
post_build:
description: 'Any arbitrary shell command to be executed after the asciidoc build is complete and before committing changes on gh-pages branch. Optional.'
default: 'echo "No post build command provided."'
required: false
runs:
using: docker
image: Dockerfile
args:
- ${{ inputs.source_dir }}
- ${{ inputs.asciidoctor_params }}
- ${{ inputs.adoc_file_ext }}
- ${{ inputs.slides_build }}
- ${{ inputs.slides_main_adoc_file }}
- ${{ inputs.slides_skip_asciidoctor_build }}
- ${{ inputs.pdf_build }}
- ${{ inputs.ebook_main_adoc_file }}
- ${{ inputs.pre_build }}
- ${{ inputs.post_build }}