Fix Issue in latex.yml #5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build LaTeX document | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Set up LaTeX environment | |
uses: xu-cheng/latex-action@v2 | |
with: | |
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 CV.pdf | |
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 |