This commit is contained in:
36
.gitea/workflows/compile-typst.yml
Normal file
36
.gitea/workflows/compile-typst.yml
Normal file
@@ -0,0 +1,36 @@
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user