34 lines
677 B
YAML
34 lines
677 B
YAML
name: Compile LaTeX document
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main # or any other branch you want to trigger the workflow
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
|
|
container:
|
|
image: leplusorg/latex
|
|
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- name: Compile LaTeX Document
|
|
run: latexmk -pdf -output-directory=/github/workspace ${{ env.root_file }}
|
|
env:
|
|
root_file: main.tex # Replace 'main.tex' with the path to your main LaTeX file
|
|
|
|
- name: Upload PDF
|
|
uses: actions/upload-artifact@v3
|
|
with:
|
|
name: Compiled-PDF
|
|
path: ./*.pdf
|
|
|