Skip to content

Commit 7695741

Browse files
authored
Update main.yml
1 parent c7e7934 commit 7695741

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

.github/workflows/main.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,19 @@ jobs:
1515
uses: actions/setup-node@v4
1616
with:
1717
node-version: '20'
18-
19-
- name: Install markdown-pdf
20-
run: npm install -g markdown-pdf
18+
19+
- name: Install dependencies
20+
run: npm install puppeteer markdown-it markdown-it-pdf
2121

2222
- name: Merge Markdown files
2323
run: |
2424
find doc -type f -name "readme.md" | sort | xargs -I {} sh -c 'cat "$@" >> README.md' _ {}
2525
find doc -type f -name "*.md" ! -name "readme.md" | sort | xargs -I {} sh -c 'cat "$@" >> README.md' _ {}
2626
2727
- name: Convert README.md to README.pdf
28-
run: markdown-pdf README.md -o README.pdf
28+
run: |
29+
npx markdown-it README.md -o README.html
30+
npx puppeteer --headless --disable-gpu --print-to-pdf=README.pdf README.html
2931
3032
- name: Upload PDF
3133
uses: actions/upload-artifact@v4

0 commit comments

Comments
 (0)