Skip to content

Commit 990fd17

Browse files
committed
Add GH action to convert README.MD to PDF
1 parent 0f61808 commit 990fd17

1 file changed

Lines changed: 27 additions & 0 deletions

File tree

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: README to PDF
2+
3+
on:
4+
workflow_dispatch: # lets you run it manually from the Actions tab
5+
push:
6+
paths: ['README.md'] # optional: rebuild whenever the README changes
7+
8+
permissions:
9+
contents: read
10+
11+
jobs:
12+
convert:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v4
16+
17+
- uses: itext/markdown2pdf-gh-action@v1.0.0
18+
id: convert
19+
with:
20+
input: 'README.md'
21+
output: 'dist/README.pdf'
22+
23+
- uses: actions/upload-artifact@v4
24+
with:
25+
name: itext-markdown2pdf-output
26+
path: ${{ steps.convert.outputs.output-path }}
27+
if-no-files-found: error

0 commit comments

Comments
 (0)