Update actions
Some checks failed
Build LaTeX Document and Publish Release / build-and-release (push) Failing after 6m57s
Some checks failed
Build LaTeX Document and Publish Release / build-and-release (push) Failing after 6m57s
This commit is contained in:
@@ -22,8 +22,9 @@ jobs:
|
|||||||
# Compile the LaTeX document
|
# Compile the LaTeX document
|
||||||
- name: Compile LaTeX
|
- name: Compile LaTeX
|
||||||
run: |
|
run: |
|
||||||
|
cd latex
|
||||||
mkdir -p output
|
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
|
# Replace `main.tex` with the name of your main LaTeX file
|
||||||
|
|
||||||
# Upload the PDF as an artifact (optional, for debugging)
|
# Upload the PDF as an artifact (optional, for debugging)
|
||||||
@@ -43,7 +44,7 @@ jobs:
|
|||||||
-H "Authorization: token $GITEA_TOKEN" \
|
-H "Authorization: token $GITEA_TOKEN" \
|
||||||
-H "Content-Type: application/json" \
|
-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}' \
|
-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://<your-gitea-instance>/api/v1/repos/<owner>/<repo>/releases
|
https://git.out.jafre.li/api/v1/repos/jafreli/Laborarbeit-Projektmanagment/releases
|
||||||
|
|
||||||
# Upload the compiled PDF to the Gitea release
|
# Upload the compiled PDF to the Gitea release
|
||||||
- name: Upload Release Asset
|
- name: Upload Release Asset
|
||||||
@@ -52,11 +53,11 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
release_id=$(curl -s \
|
release_id=$(curl -s \
|
||||||
-H "Authorization: token $GITEA_TOKEN" \
|
-H "Authorization: token $GITEA_TOKEN" \
|
||||||
https://<your-gitea-instance>/api/v1/repos/<owner>/<repo>/releases \
|
https://git.out.jafre.li/api/v1/repos/jafreli/Laborarbeit-Projektmanagment/releases \
|
||||||
| jq -r '.[0].id')
|
| jq -r '.[0].id')
|
||||||
|
|
||||||
curl -X POST \
|
curl -X POST \
|
||||||
-H "Authorization: token $GITEA_TOKEN" \
|
-H "Authorization: token $GITEA_TOKEN" \
|
||||||
-F "name=dokumentation.pdf" \
|
-F "name=dokumentation.pdf" \
|
||||||
-F "attachment=@output/dokumentation.pdf" \
|
-F "attachment=@output/dokumentation.pdf" \
|
||||||
https://<your-gitea-instance>/api/v1/repos/<owner>/<repo>/releases/$release_id/assets
|
https://git.out.jafre.li/api/v1/repos/jafreli/Laborarbeit-Projektmanagment/releases/$release_id/assets
|
||||||
|
|||||||
Reference in New Issue
Block a user