Skip to content

Commit bc88c07

Browse files
committed
Add PDF and epub for github actions
1 parent c5723be commit bc88c07

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-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: vuejs-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.10
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.10
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

0 commit comments

Comments
 (0)