diff --git a/.gitea/workflows/latex.yaml b/.gitea/workflows/latex.yaml index 6bb7cbd..c2f4fcb 100644 --- a/.gitea/workflows/latex.yaml +++ b/.gitea/workflows/latex.yaml @@ -22,8 +22,9 @@ jobs: # Compile the LaTeX document - name: Compile LaTeX run: | + cd latex mkdir -p output - pdflatex -output-directory=output latex/dokumentation.tex + pdflatex -output-directory=output dokumentation.tex # Replace `main.tex` with the name of your main LaTeX file # Upload the PDF as an artifact (optional, for debugging) @@ -43,7 +44,7 @@ jobs: -H "Authorization: token $GITEA_TOKEN" \ -H "Content-Type: application/json" \ -d '{"tag_name": "v1.0.0", "target_commitish": "main", "name": "LaTeX Build - v1.0.0", "body": "This release contains the compiled LaTeX document.", "draft": false, "prerelease": false}' \ - https:///api/v1/repos///releases + https://git.out.jafre.li/api/v1/repos/jafreli/Laborarbeit-Projektmanagment/releases # Upload the compiled PDF to the Gitea release - name: Upload Release Asset @@ -52,11 +53,11 @@ jobs: run: | release_id=$(curl -s \ -H "Authorization: token $GITEA_TOKEN" \ - https:///api/v1/repos///releases \ + https://git.out.jafre.li/api/v1/repos/jafreli/Laborarbeit-Projektmanagment/releases \ | jq -r '.[0].id') curl -X POST \ -H "Authorization: token $GITEA_TOKEN" \ -F "name=dokumentation.pdf" \ -F "attachment=@output/dokumentation.pdf" \ - https:///api/v1/repos///releases/$release_id/assets + https://git.out.jafre.li/api/v1/repos/jafreli/Laborarbeit-Projektmanagment/releases/$release_id/assets