diff --git a/.github/workflows/compile-and-upload-latex.yml b/.github/workflows/compile-and-upload-latex.yml new file mode 100644 index 0000000..9ca59e7 --- /dev/null +++ b/.github/workflows/compile-and-upload-latex.yml @@ -0,0 +1,23 @@ +name: Build LaTeX document +on: + push: + tags: + - "v*.*.*" + +jobs: + build-and-release: + runs-on: ubuntu-latest + steps: + - name: Set up Git repository + uses: actions/checkout@v2 + - name: Compile LaTeX document + uses: xu-cheng/latex-action@v2 + with: + root_file: main.tex + args: -pdf -file-line-error -halt-on-error -interaction=nonstopmode --shell-escape + - name: Rename file + run: mv main.pdf "${{ github.event.repository.name }}-${{ github.ref_name }}.pdf" + - name: Release + uses: softprops/action-gh-release@v1 + with: + files: ${{ github.event.repository.name }}-${{ github.ref_name }}.pdf \ No newline at end of file