This commit is contained in:
parent
470733916e
commit
30cf35d4cc
33
.gitea/workflows/action.yml
Normal file
33
.gitea/workflows/action.yml
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
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: ghcr.io/xu-cheng/latex-action:full
|
||||||
|
|
||||||
|
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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user