File tree Expand file tree Collapse file tree 1 file changed +16
-16
lines changed Expand file tree Collapse file tree 1 file changed +16
-16
lines changed Original file line number Diff line number Diff line change 1- name : Generate PDF
1+ name : Generate PDF from Readme
22
33on :
44 push :
55 branches :
6- - main # Replace with your branch name if necessary
6+ - main # Change this to your default branch if necessary
77
88jobs :
9- build :
9+ generate-pdf :
1010 runs-on : ubuntu-latest
11-
11+
1212 steps :
13- - name : Checkout repository
14- uses : actions/checkout@v2
15-
16- - name : Setup Node.js
17- uses : actions/setup-node@v2
18- with :
19- node-version : 14
20-
21- - name : Install dependencies
22- run : npm install markdown-pdf
13+ - name : Checkout repository
14+ uses : actions/checkout@v2
2315
24- - name : Generate PDF
25- run : npx markdown-pdf README.md
16+ - name : Set up Node.js
17+ uses : actions/setup-node@v2
18+ with :
19+ node-version : 14
20+
21+ - name : Install dependencies
22+ run : npm install markdown-pdf --global
23+
24+ - name : Generate PDF
25+ run : markdown-pdf readme.md --out assets/readme.pdf
You can’t perform that action at this time.
0 commit comments