From c8bcfba6629ae6b6aae34117a9dcc75de5d0f081 Mon Sep 17 00:00:00 2001 From: jafreli Date: Tue, 31 Dec 2024 00:44:48 +0000 Subject: [PATCH] Update actions --- .gitea/workflows/latex.yaml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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