Skip to content

Commit 5c65f08

Browse files
committed
ci: add workflow to generate readme pdf
1 parent 957268d commit 5c65f08

1 file changed

Lines changed: 34 additions & 0 deletions

File tree

‎.github/workflows/readme-pdf.yml‎

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Generate README PDF
2+
3+
on:
4+
push:
5+
paths:
6+
- 'README.md'
7+
branches:
8+
- main
9+
workflow_dispatch:
10+
11+
jobs:
12+
convert-to-pdf:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Checkout Repository
16+
uses: actions/checkout@v4
17+
18+
- name: Setup Node.js
19+
uses: actions/setup-node@v4
20+
with:
21+
node-version: 20
22+
23+
- name: Install md-to-pdf
24+
run: npm install -g md-to-pdf
25+
26+
- name: Convert README to PDF
27+
run: md-to-pdf README.md
28+
29+
- name: Upload PDF Artifact
30+
uses: actions/upload-artifact@v4
31+
with:
32+
name: readme-pdf
33+
path: README.pdf
34+

0 commit comments

Comments
 (0)