Skip to content

Commit eff0377

Browse files
committed
Adding PDF build
1 parent 97e5d0b commit eff0377

File tree

10 files changed

+26
-75
lines changed

10 files changed

+26
-75
lines changed

.github/workflows/publish-pdf.yaml

Lines changed: 24 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,30 @@
1-
# name: Build PDF
1+
name: Build and release PDF
22

3-
# on:
4-
# push:
5-
# branches:
6-
# - main
3+
on:
4+
push:
5+
branches:
6+
- main
77

8-
# jobs:
9-
# build:
10-
# runs-on: ubuntu-latest
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
1111

12-
# steps:
13-
# - name: Checkout Repository
14-
# uses: actions/checkout@v3
12+
steps:
13+
- name: Checkout Repository
14+
uses: actions/checkout@v3
1515

16-
# - name: Build Asciidoc PDF
17-
# uses: docker://asciidoctor/docker-asciidoctor
18-
# with:
19-
# args: 'asciidoctor-pdf -a pdf-themesdir=pdf -a pdf-theme=redhat -a toc-title="" -a doctype=book -a source-highlighter="rouge" main.adoc -o cnf-best-practices.pdf'
16+
- name: Extract assets
17+
run: docker cp $(docker run --detach quay.io/redhat-docs/redhat-docs-pdf-template):/pdf-assets ./pdf-assets
2018

21-
# - name: Create PDF release
22-
# run: |
23-
# echo $GITHUB_RUN_NUMBER > version.txt
24-
# gh release create v$GITHUB_RUN_NUMBER 'cnf-best-practices.pdf'
25-
# env:
26-
# GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
19+
- name: Build PDF
20+
uses: docker://quay.io/redhat-docs/redhat-docs-pdf-template
21+
with:
22+
args: main.adoc
2723

24+
- name: Create PDF release
25+
run: |
26+
echo $GITHUB_RUN_NUMBER > version.txt
27+
mv main.pdf cnf-best-practices.pdf
28+
gh release create v$GITHUB_RUN_NUMBER cnf-best-practices.pdf
29+
env:
30+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,5 @@ cnf-best-practices.sublime-workspace
44
main.pdf
55
cnf-best-practices.pdf
66
verizon-cnf-best-practices.pdf
7+
pdf-assets
8+
assets

pdf/icons/caution.svg

Lines changed: 0 additions & 4 deletions
This file was deleted.

pdf/icons/important.svg

Lines changed: 0 additions & 4 deletions
This file was deleted.

pdf/icons/note.svg

Lines changed: 0 additions & 4 deletions
This file was deleted.

pdf/icons/tip.svg

Lines changed: 0 additions & 4 deletions
This file was deleted.

pdf/icons/warning.svg

Lines changed: 0 additions & 4 deletions
This file was deleted.

pdf/images/logo.svg

Lines changed: 0 additions & 1 deletion
This file was deleted.

pdf/images/telco.jpeg

-642 KB
Binary file not shown.

pdf/redhat-theme.yml

Lines changed: 0 additions & 33 deletions
This file was deleted.

0 commit comments

Comments
 (0)