37 lines
787 B
YAML
37 lines
787 B
YAML
name: Compile Typst CV
|
|
|
|
on:
|
|
push:
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Compile Typst
|
|
run: |
|
|
typst compile cv.typ
|
|
|
|
- name: Check if PDF was created
|
|
run: |
|
|
if [ ! -f cv.pdf ]; then
|
|
echo "Error: cv.pdf was not created"
|
|
exit 1
|
|
fi
|
|
ls -lh cv.pdf
|
|
|
|
- name: Commit and push PDF
|
|
run: |
|
|
git config user.name "Gitea Actions"
|
|
git config user.email "actions@gitea.local"
|
|
git add cv.pdf
|
|
if git diff --staged --quiet; then
|
|
echo "No changes to commit"
|
|
else
|
|
git commit -m "Auto-build: Update cv.pdf"
|
|
git push
|
|
fi
|
|
|