Files
My-Resume-Generator/.gitea/workflows/sample.yaml
Jared Kling d8cb1b8272
Some checks failed
Build and Publish / build_html (push) Successful in 7s
Build and Publish / convert_to_pdf (push) Failing after 26s
Build and Publish / upload_as_release (push) Successful in 2s
Use venvs
2025-12-08 22:29:35 -06:00

45 lines
1.1 KiB
YAML

name: Build and Publish
run-name: Building latest version of my resume 🚀
on: [push]
jobs:
build_html:
runs-on: ubuntu-latest
container: node:latest
steps:
- name: Check out repository code
uses: actions/checkout@v4
- name: Build the resume
run: |
npm i
npm run build
- name: List files in the repository
run: |
ls ${{ gitea.workspace }}
convert_to_pdf:
runs-on: ubuntu-latest
steps:
- name: Install weasyprint
run: |
sudo apt-get update
sudo apt-get install -y python3-venv python3-pip libpango-1.0-0 libpangoft2-1.0-0
python3 -m venv venv
venv/bin/pip install weasyprint
- name: Convert to pdf
run: |
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:
files: |-
resume.pdf
token: ${{ secrets.GITHUB_TOKEN }}