Uploading compiled .tex file (.pdf) to the root repo in Gitlab
0
votes
1
answer
45
views
I need your help with the following problem. I'm trying to compile a
.tex
document in GitLab and put my compiled .pdf
file in the root repo. I have created a .gitlab-ci.yml
file which has the following configuration:
# Use the latest version of the TeX Live Docker image
image: texlive/texlive:latest
# Define a single stage named "build"
stages:
- build
# Configuration for the "build" stage
build:
stage: build
# Specify the events that trigger the pipeline
only:
- push
# Specify the commands to be executed in the pipeline
script:
- filename="main"
- echo "Running latexmk with lualatex"
- latexmk -pdf -pdflatex="lualatex %O %S" "$filename.tex"
- echo "Moving .pdf file to root directory"
- mv "$filename.pdf" ../
- echo "Listing contents of root directory"
- ls ../
The log
file tells me the following
Latexmk: All targets () are up-to-date
$ echo "Moving .pdf file to root directory"
Moving .pdf file to root directory
$ mv "$filename.pdf" ../
$ echo "Listing contents of root directory"
Listing contents of root directory
$ ls ../
PhD
PhD.tmp
main.pdf
Cleaning up project directory and file based variables
Job succeeded
However, when I access my repo, I do not find any main.pdf
file loaded. How can I solve this problem? Is there something I don't understand?
Asked by Mafsi
(141 rep)
Feb 21, 2023, 09:32 AM
Last activity: Apr 14, 2023, 10:00 AM
Last activity: Apr 14, 2023, 10:00 AM