Skip to content

Commit d873cb8

Browse files
committed
chore: Add GitHub workflow to convert README to PDF
1 parent 446c288 commit d873cb8

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.github/workflows/md-to-pdf.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Convert README to PDF
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
10+
11+
jobs:
12+
convert-readme:
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- name: Checkout repository
17+
uses: actions/checkout@v2
18+
19+
- name: Install Pandoc
20+
run: sudo apt-get install -y pandoc
21+
22+
- name: Install LaTeX
23+
run: sudo apt-get install -y texlive
24+
25+
- name: Convert README.md to README.pdf
26+
run: pandoc README.md -o README.pdf
27+
28+
- name: Upload README.pdf
29+
uses: actions/upload-artifact@v2
30+
with:
31+
name: README-pdf
32+
path: README.pdf

0 commit comments

Comments
 (0)