@@ -18,25 +18,26 @@ 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
- # Downloading the binaries directly, because they are newer and work better, than the ones that come with Ubuntu latest.
22
- - name : " Install pandoc and wkhtmltopdf "
21
+ # Install pandoc and weasyprint
22
+ - name : " Install pandoc and weasyprint "
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
- wget https://github.com/wkhtmltopdf/packaging/releases/download/0.12.6.1-2/wkhtmltox_0.12.6.1-2.jammy_amd64.deb
27
26
sudo apt install ./pandoc-3.0.1-1-amd64.deb
28
- sudo apt install ./wkhtmltox_0.12.6.1-2.jammy_amd64.deb
27
+ sudo apt-get update
28
+ sudo apt-get install -y python3-pip
29
+ pip3 install weasyprint
29
30
30
31
- name : " Convert MD to HTML"
31
32
working-directory : markdown-resume
32
33
run : |
33
34
pandoc resume.md -f markdown -t html -c resume-stylesheet.css -s -o output/${{github.actor}}-resume.html
34
35
35
- - name : " Convert HTML to PDF "
36
+ - name : " Convert HTML to PDF"
36
37
working-directory : markdown-resume
37
- run : " wkhtmltopdf --enable-local-file-access output/${{github.actor}}-resume.html output/${{github.actor}}-resume.pdf "
38
- # run: |
39
- # /usr/bin/pandoc -standalone --output=output/resume.pdf --css=resume-stylesheet.css --from=markdown --to=pdf --pdf-engine=/usr/bin/wkhtmltopdf resume.md
38
+ run : |
39
+ weasyprint output/${{github.actor}}-resume.html output/${{github.actor}}-resume.pdf
40
+
40
41
- uses : actions/upload-artifact@master
41
42
with : # basically this will put resume.md, resume.html, resume.pdf and resume-stylesheet.css in a zip file.
42
43
name : ${{ github.actor }}'s Resume
0 commit comments