Skip to content

Commit 0101959

Browse files
authored
chore: Create markdown-pdf.yml
1 parent 2ba7071 commit 0101959

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

.github/workflows/markdown-pdf.yml

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

0 commit comments

Comments
 (0)