fix: resolve review comments #977
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: | |
paths: | |
- reports/** | |
workflow_dispatch: null | |
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@master | |
with: | |
latexmk_shell_escape: true | |
root_file: | | |
thesis.tex | |
summary.tex | |
working_directory: reports | |
latexmk_use_lualatex: true | |
- name: Release | |
uses: softprops/action-gh-release@v1 | |
if: startsWith(github.ref, 'refs/tags/') | |
with: | |
files: | | |
reports/thesis.pdf | |
reports/summary.pdf | |
- name: save tmp copy | |
run: | | |
mkdir ~/tmplatex | |
mv reports/thesis.pdf ~/tmplatex/thesis.pdf | |
- name: setup target repo | |
uses: actions/checkout@v4 | |
with: | |
repository: KarelZe/thesis2video | |
ref: main | |
token: ${{secrets.API_TOKEN_GITHUB}} | |
- name: setup git config | |
run: | | |
git config user.name "GitHub Actions Bot" | |
git config user.email "[email protected]" | |
- name: Move file and push | |
run: | | |
mv ~/tmplatex/thesis.pdf ${{github.event.repository.pushed_at}}-thesis.pdf | |
git add -A | |
git commit -m "Version @ ${{github.event.repository.pushed_at}}" | |
git push origin main |