Skip to content

Commit 73dc543

Browse files
committed
Add pdf and Epub formats
1 parent c249573 commit 73dc543

File tree

2 files changed

+36
-0
lines changed

2 files changed

+36
-0
lines changed

.github/workflows/main.yaml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Advanced Usage
2+
3+
on: [push, pull_request]
4+
5+
env:
6+
FILE_NAME: angular-interview-questions
7+
8+
jobs:
9+
convert_via_pandoc:
10+
runs-on: ubuntu-18.04
11+
steps:
12+
- uses: actions/checkout@v2
13+
14+
- name: Create output directory
15+
run: |
16+
mkdir output # create output dir
17+
18+
- name: Create PDF
19+
uses: docker://pandoc/latex:2.9
20+
with:
21+
args: --pdf-engine=xelatex --output=output/${{env.FILE_NAME}}.pdf README.md
22+
23+
- name: Create epub
24+
uses: docker://pandoc/latex:2.9
25+
with:
26+
args: --output=output/${{env.FILE_NAME}}.epub README.md
27+
28+
- name: Upload
29+
uses: actions/upload-artifact@master
30+
with:
31+
name: output
32+
path: output

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
> Click :star:if you like the project. Pull Request are highly appreciated. Follow me [@SudheerJonna](https://twitter.com/SudheerJonna) for technical updates.
44
5+
## Downloading PDF/Epub formats
6+
7+
You can download the PDF and Epub version of this repository from the latest run on the [actions tab](https://github.com/sudheerj/angular-interview-questions/actions).
8+
59
### Table of Contents
610

711
| No. | Questions |

0 commit comments

Comments
 (0)