Skip to content

Commit a5e2d5a

Browse files
author
Manthan Ankolekar
committed
feat: added generate pdf yml
1 parent 36b1812 commit a5e2d5a

File tree

1 file changed

+15
-12
lines changed

1 file changed

+15
-12
lines changed

.github/workflows/generate-pdf.yml

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,26 @@
1-
name: Generate PDF from Readme
1+
name: Generate PDF
22

33
on:
44
push:
55
branches:
6-
- main # Change this to your default branch if necessary
6+
- main # Change this to your branch name if necessary
77

88
jobs:
9-
generate-pdf:
9+
build:
1010
runs-on: ubuntu-latest
11-
11+
1212
steps:
13-
- name: Checkout repository
14-
uses: actions/checkout@v2
13+
- name: Checkout code
14+
uses: actions/checkout@v2
1515

16-
- name: Install rsvg-convert
17-
run: sudo apt-get install -y librsvg2-bin
16+
- name: Setup Node.js
17+
uses: actions/setup-node@v2
18+
with:
19+
node-version: "14"
1820

19-
- name: Install pdflatex
20-
run: sudo apt-get install -y texlive-latex-base
21+
- name: Install dependencies
22+
run: npm install puppeteer
2123

22-
- name: Generate PDF
23-
run: pandoc README.md -o assets/README.pdf
24+
- name: Generate PDF
25+
run: |
26+
npx puppeteer print README.md --pdf ./assets/README.pdf

0 commit comments

Comments
 (0)