Move to weasyprint
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
name: Build
|
||||
name: Build and Publish
|
||||
run-name: Building latest version of my resume 🚀
|
||||
on: [push]
|
||||
|
||||
jobs:
|
||||
Build_And_Publish:
|
||||
build_html:
|
||||
runs-on: ubuntu-latest
|
||||
container: node:latest
|
||||
steps:
|
||||
@@ -16,12 +16,23 @@ jobs:
|
||||
- name: List files in the repository
|
||||
run: |
|
||||
ls ${{ gitea.workspace }}
|
||||
|
||||
convert_to_pdf:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Install weasyprint
|
||||
run: |
|
||||
sudo apt update && sudo apt install weasyprint -y
|
||||
- name: Convert to pdf
|
||||
run: |
|
||||
npx puppeteer-cli print generated_resume.html resume.pdf
|
||||
weasyprint generated_resume.html resume.pdf
|
||||
- name: List files in the repository
|
||||
run: |
|
||||
ls ${{ gitea.workspace }}
|
||||
|
||||
upload_as_release:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Create Release
|
||||
uses: akkuman/gitea-release-action@v1
|
||||
with:
|
||||
|
||||
Reference in New Issue
Block a user