File tree Expand file tree Collapse file tree 1 file changed +10
-6
lines changed Expand file tree Collapse file tree 1 file changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -18,15 +18,14 @@ jobs:
18
18
mkdir output
19
19
cp resume-stylesheet.css output/resume-stylesheet.css
20
20
cp resume.md output/${{ github.actor }}-resume.md
21
- # Install pandoc and weasyprint
22
- - name : " Install pandoc and weasyprint "
21
+ # Install pandoc and setup pnpm
22
+ - name : " Install pandoc and setup pnpm "
23
23
working-directory : markdown-resume
24
24
run : |
25
25
wget https://github.com/jgm/pandoc/releases/download/3.0.1/pandoc-3.0.1-1-amd64.deb
26
26
sudo apt install ./pandoc-3.0.1-1-amd64.deb
27
- sudo apt-get update
28
- sudo apt-get install -y python3-pip
29
- pip3 install weasyprint
27
+ npm install -g pnpm
28
+ pnpm install
30
29
31
30
- name : " Convert MD to HTML"
32
31
working-directory : markdown-resume
36
35
- name : " Convert HTML to PDF"
37
36
working-directory : markdown-resume
38
37
run : |
39
- weasyprint output/${{github.actor}}-resume.html output/${{github.actor}}-resume.pdf
38
+ node generate-pdf.js
39
+
40
+ - name : " Move PDF to output"
41
+ working-directory : markdown-resume
42
+ run : |
43
+ mv resume.pdf output/${{github.actor}}-resume.pdf
40
44
41
45
- uses : actions/upload-artifact@master
42
46
with : # basically this will put resume.md, resume.html, resume.pdf and resume-stylesheet.css in a zip file.
You can’t perform that action at this time.
0 commit comments