wip
All checks were successful
/ test_checkout (push) Successful in 42s

This commit is contained in:
Jean-Marie Mineau 2025-06-25 13:36:17 +02:00
parent 71bd155f0f
commit d02bea68ec
Signed by: histausse
GPG key ID: B66AEEDA9B645AD2

View file

@ -7,6 +7,11 @@ jobs:
steps:
- run: apk add --no-cache git curl
- run: |
mkdir /tmp/font
cd /tmp/font
curl -L -O http://www.gust.org.pl/projects/e-foundry/tex-gyre/whole/tg2_501otf.zip
unzip tg2_501otf.zip
install -Dt /usr/share/fonts/tex-gyre -m644 tg2_501otf/*.otf
mkdir -p ~/.local/share/typst/packages/local/template-thesis-matisse/
git clone https://git.mineau.eu/histausse/template-thesis-matisse.git ~/.local/share/typst/packages/local/template-thesis-matisse/0.0.1
- run: |
@ -20,7 +25,8 @@ jobs:
ls
- run: |
cd "${GITHUB_WORKSPACE}"
/bin/typst compile --input commit=$(git rev-parse --short HEAD) main.typ
/bin/typst compile --input commit=$(git rev-parse --short HEAD) --font-path /usr/share/fonts/ main.typ
- run: |
curl --user "histausse:${GITHUB_TOKEN}" -X DELETE "${GITHUB_SERVER_URL}/api/packages/histausse/generic/thesis/latest/draft.pdf"
curl --user "histausse:${GITHUB_TOKEN}" --upload-file "${GITHUB_WORKSPACE}/main.pdf" "${GITHUB_SERVER_URL}/api/packages/histausse/generic/thesis/latest/draft.pdf"
curl --user "histausse:${GITHUB_TOKEN}" --upload-file "${GITHUB_WORKSPACE}/main.pdf" "${GITHUB_SERVER_URL}/api/packages/histausse/generic/thesis/${GITHUB_REF_NAME}/draft.pdf"