upload action
Some checks failed
Build CV / build-pdf (push) Failing after 1m59s

This commit is contained in:
Yigit Colakoglu 2025-09-02 10:02:13 +02:00
parent efc4720451
commit bcc402146a

View File

@ -29,3 +29,19 @@ jobs:
name: curriculum-vitae name: curriculum-vitae
path: main.pdf path: main.pdf
retention-days: 30 retention-days: 30
- name: Deploy to pdf-artifacts branch
if: github.ref == 'refs/heads/main'
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git fetch origin pdf-artifacts
git checkout pdf-artifacts
cp main.pdf .
git add main.pdf
if git diff --staged --quiet; then
echo "No changes to commit"
else
git commit -m "Update CV PDF from commit ${{ github.sha }}"
git push origin pdf-artifacts
fi