From fe6a0cad3aab3d8cd6e5f760745f2b4dd96b84aa Mon Sep 17 00:00:00 2001 From: Mehdi Karami Date: Mon, 5 Aug 2024 23:49:11 +0330 Subject: [PATCH] Update latex.yml --- .github/workflows/latex.yml | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/.github/workflows/latex.yml b/.github/workflows/latex.yml index 840e4c4..4aa5fa2 100644 --- a/.github/workflows/latex.yml +++ b/.github/workflows/latex.yml @@ -17,11 +17,21 @@ jobs: - name: Set up LaTeX environment uses: xu-cheng/latex-action@v2 with: - root_file: ./CV.tex + root_file: CV.tex latexmk_use_lualatex: true + - name: Commit PDF file + run: | + git config --global user.name 'github-actions[bot]' + git config --global user.email 'github-actions[bot]@users.noreply.github.com' + git add .pdf # Replace with your output file path + git commit -m "Add compiled PDF" + git push + env: + GITHUB_TOKEN: ${{ secrets.ACTIONS_DEPLOY_KEY }} + - name: Upload PDF uses: actions/upload-artifact@v2 with: name: CV - path: ./CV.pdf + path: CV.pdf