-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (43 loc) · 1.39 KB
/
generate_html.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
name: Build html files
on: push
jobs:
generate_html:
runs-on: ubuntu-latest
steps:
- name: Get repo
uses: actions/checkout@v2
- name: Generate index.html
uses: docker://pandoc/core:2.9
with:
args: >
--output=index.html
--include-before-body=navigation.html
--css=github-pandoc.css
--standalone
--title-prefix="Metafacture"
index.md
- name: Generate installation.html
uses: docker://pandoc/core:2.9
with:
args: >
--output=getting-started.html
--include-before-body=navigation.html
--css=github-pandoc.css
--standalone
--title-prefix="Metafacture"
getting-started.md
- name: Generate ide-extensions.html
uses: docker://pandoc/core:2.9
with:
args: >
--output=ide-extensions.html
--include-before-body=navigation.html
--css=../github-pandoc.css
--standalone
--title-prefix="Metafacture"
ide-extensions.md
- name: Commit html files
uses: EndBug/add-and-commit@v5
with:
message: "Add newly generated html files by GitHub Actions."
add: "index.html getting-started.html ide-extensions/index.html --force"