CI
All checks were successful
/ test_checkout (push) Successful in 41s

This commit is contained in:
Jean-Marie Mineau 2025-06-25 14:10:04 +02:00
parent a81bc86679
commit e7a46aa2a9
Signed by: histausse
GPG key ID: B66AEEDA9B645AD2
2 changed files with 6 additions and 5 deletions

View file

@ -27,9 +27,7 @@ jobs:
cd "${GITHUB_WORKSPACE}"
/bin/typst compile --input commit=$(git rev-parse --short HEAD) --font-path /usr/share/fonts/ main.typ
- run: |
echo curl -s --show-headers --user "histausse:${{secrets.TOKEN_HISTAUSSE_PACKAGE}}" -X DELETE "${GITHUB_SERVER_URL}/api/packages/these-ammii/generic/thesis/latest/draft.pdf"
echo curl -s --show-headers --user "histausse:${{secrets.TOKEN_HISTAUSSE_PACKAGE}}" --upload-file "${GITHUB_WORKSPACE}/main.pdf" "${GITHUB_SERVER_URL}/api/packages/these-ammii/generic/thesis/latest/draft.pdf"
echo curl -s --show-headers --user "histausse:${{secrets.TOKEN_HISTAUSSE_PACKAGE}}" --upload-file "${GITHUB_WORKSPACE}/main.pdf" "${GITHUB_SERVER_URL}/api/packages/these-ammii/generic/thesis/${GITHUB_REF_NAME}/draft.pdf"
curl -s --show-headers --user "histausse:${{secrets.TOKEN_HISTAUSSE_PACKAGE}}" -X DELETE "${GITHUB_SERVER_URL}/api/packages/these-ammii/generic/thesis/latest/draft.pdf"
curl -s --show-headers --user "histausse:${{secrets.TOKEN_HISTAUSSE_PACKAGE}}" --upload-file "${GITHUB_WORKSPACE}/main.pdf" "${GITHUB_SERVER_URL}/api/packages/these-ammii/generic/thesis/${GITHUB_SHA}/draft.pdf"
curl -s --show-headers --user "histausse:${{secrets.TOKEN_HISTAUSSE_PACKAGE}}" --upload-file "${GITHUB_WORKSPACE}/main.pdf" "${GITHUB_SERVER_URL}/api/packages/these-ammii/generic/thesis/latest/draft.pdf"
# curl -s --show-headers --user "histausse:${{secrets.TOKEN_HISTAUSSE_PACKAGE}}" --upload-file "${GITHUB_WORKSPACE}/main.pdf" "${GITHUB_SERVER_URL}/api/packages/these-ammii/generic/thesis/${GITHUB_SHA}/draft.pdf"

View file

@ -6,7 +6,7 @@ By Jean-Marie Mineau, supervised by Jean-François Lalande and Valérie Viet Tri
Currently build on [typst](https://github.com/typst/typst) 0.13.1.
To build, you need to install the template: https://git.mineau.eu/histausse/template-thesis-matisse
To build, you need to install the template: <https://git.mineau.eu/histausse/template-thesis-matisse>
```
mkdir -p ~/.local/share/typst/packages/local/template-thesis-matisse/
@ -28,3 +28,6 @@ typst compile main.typ
```
Additionally, the argument `--input commit=$(git rev-parse --short HEAD)` will add the current commit at the beginning of the draft, and `--input draft=false` will build the clean version, without TODOs or line numbers.
The CI should build the latest draft at <https://git.mineau.eu/api/packages/these-ammii/generic/thesis/latest/draft.pdf>