-
Notifications
You must be signed in to change notification settings - Fork 4
91 lines (76 loc) · 3.41 KB
/
doc_pdf_export.yaml
File metadata and controls
91 lines (76 loc) · 3.41 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
# Copyright 2023 CS Group
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
name: Infrastructure Documentation Export
on:
push:
tags:
- "[0-9]+.[0-9]+.[0-9]+-rc[0-9]+"
workflow_dispatch:
jobs:
convert_readme_via_pandoc:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
- name: make output dir
id: make_output_dir
run: mkdir output # create output dir
- name: Create PDF
uses: docker://ghcr.io/coprs/reference-system-software:dependencies_pandoc_latex
with:
args: -s --resource-path="/github/workspace/doc/img:/github/workspace/doc:." --listings -H /root/.pandoc/listings-setup.tex -H /root/.pandoc/deeplists.tex -V geometry:margin=1in --table-of-contents --pdf-engine=xelatex --output="output/infrastructure_readme.pdf" --from=markdown README.md
- uses: actions/upload-artifact@master
with:
name: documentation
path: output
convert_docs_via_pandoc:
runs-on: ubuntu-18.04
strategy:
matrix:
document: [config, user_manual]
steps:
- uses: actions/checkout@v2
- name: make output dir
id: make_output_dir
run: mkdir output # create output dir
- name: Create PDF
continue-on-error: true
uses: docker://ghcr.io/coprs/reference-system-software:dependencies_pandoc_latex
with:
args: -s --resource-path="/github/workspace/doc/img:/github/workspace/doc/how-to:." --listings -H /root/.pandoc/listings-setup.tex -H /root/.pandoc/deeplists.tex -V geometry:margin=1in --table-of-contents --pdf-engine=xelatex --output="output/${{ matrix.document }}.pdf" --from=markdown "doc/${{ matrix.document }}.md"
- uses: actions/upload-artifact@master
with:
name: documentation
path: output
convert_howto_via_pandoc:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
- name: create file list
id: files_list
run: |
find "doc/how-to" -type f -name "*.md" | sort -V | awk '{ print "\""$0"\""}' | tr -s '\n' ' ' > list.txt
# this will also include README.md
# echo "::set-output name=files::$(printf '"%s" ' *.md)"
echo "::set-output name=files::$(cat list.txt)"
- name: make output dir
id: make_output_dir
run: mkdir output # create output dir
- name: Create PDF
uses: docker://ghcr.io/coprs/reference-system-software:dependencies_pandoc_latex
with:
args: -s --resource-path="/github/workspace/doc/img:/github/workspace/doc/how-to:." --listings -H /root/.pandoc/listings-setup.tex -H /root/.pandoc/deeplists.tex -V geometry:margin=1in --table-of-contents --pdf-engine=xelatex --output="output/how-to.pdf" --from=markdown ${{ steps.files_list.outputs.files }}
- uses: actions/upload-artifact@master
with:
name: documentation
path: output