Files
.profile/.gitea/workflows/compile-typst.yml
Doschennikov Nikita cd06d6c8b0
All checks were successful
Compile Typst CV / build (push) Successful in 9s
Update .gitea/workflows/compile-typst.yml
2026-02-24 17:22:23 +00:00

41 lines
1.0 KiB
YAML

name: Compile Typst CV
on:
push:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install Typst
run: |
curl -L https://github.com/typst/typst/releases/latest/download/typst-x86_64-unknown-linux-musl.tar.xz \
| tar -xJ --strip-components=1 -C /usr/local/bin typst-x86_64-unknown-linux-musl/typst
- name: Compile Typst
run: typst compile cv.typ --root .
- 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