diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..d43587a --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,28 @@ +--- +name: Build thesis template + +on: + push: +# branches: [ "master" ] + branches: [ "feature/build-pipeline" ] + pull_request: +# branches: [ "master" ] + branches: [ "feature/build-pipeline" ] + workflow_dispatch: + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Set up Git repository + uses: actions/checkout@v3 + - name: Compile LaTeX document + uses: xu-cheng/latex-action@v2 + with: + root_file: thesis.tex + latexmk_use_xelatex: true + - name: Upload PDF file + uses: actions/upload-artifact@v3 + with: + name: thesis-pdf + path: thesis.pdf