chore(deps): update dependency Update to v2.3.0 (#27) #80
This file contains hidden or 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] | |
| jobs: | |
| build_latex: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Set up Git repository | |
| uses: actions/checkout@v4 | |
| - name: Compile LaTeX document | |
| uses: xu-cheng/latex-action@v3 | |
| with: | |
| root_file: Paper.tex | |
| - name: Upload PDF file | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: PDF | |
| path: Paper.pdf | |
| - name: Configure Git | |
| run: | | |
| git config user.name "Aidans Tex Bot" | |
| git config user.email "[email protected]" | |
| - name: Fetch and reset to the remote state | |
| run: | | |
| git fetch origin ${{ github.ref }} | |
| git reset --hard FETCH_HEAD | |
| - name: Add and commit PDF to repository | |
| run: | | |
| git add Paper.pdf | |
| if git diff --staged --quiet; then | |
| echo "No changes to commit" | |
| else | |
| git commit -m "Add compiled PDF" | |
| fi | |
| - name: Push changes | |
| uses: ad-m/[email protected] | |
| with: | |
| github_token: ${{ secrets.GITHUB_TOKEN }} | |
| branch: ${{ github.ref }} |