From 391322a10717b450ccf95f5fbec67abc2a84f92f Mon Sep 17 00:00:00 2001 From: Jean-Marie 'Histausse' Mineau Date: Wed, 29 Oct 2025 15:01:42 +0100 Subject: [PATCH] update CI --- .forgejo/workflows/publish.yaml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.forgejo/workflows/publish.yaml b/.forgejo/workflows/publish.yaml index 20afd6a..f78e7ae 100644 --- a/.forgejo/workflows/publish.yaml +++ b/.forgejo/workflows/publish.yaml @@ -3,7 +3,7 @@ jobs: test_checkout: runs-on: docker container: - image: ghcr.io/typst/typst:v0.13.1 + image: ghcr.io/typst/typst:v0.14 steps: - run: apk add --no-cache git curl - run: | @@ -26,11 +26,13 @@ jobs: - run: | cd "${GITHUB_WORKSPACE}" /bin/typst compile --input commit=$(git rev-parse --short HEAD) --font-path /usr/share/fonts/ main.typ - /bin/typst compile --input draft=false --input abstract-only=true main.typ abstract.pdf + /bin/typst compile --input draft=false --input abstract-only=true --font-path /usr/share/fonts/ main.typ abstract.pdf + /bin/typst compile --font-path /usr/share/fonts/ slides.typ - run: | curl -s --show-headers --user "histausse:${{secrets.TOKEN_HISTAUSSE_PACKAGE}}" -X DELETE "${GITHUB_SERVER_URL}/api/packages/these-android-re/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-android-re/generic/thesis/latest/draft.pdf" curl -s --show-headers --user "histausse:${{secrets.TOKEN_HISTAUSSE_PACKAGE}}" -X DELETE "${GITHUB_SERVER_URL}/api/packages/these-android-re/generic/thesis/latest/abstract.pdf" - curl -s --show-headers --user "histausse:${{secrets.TOKEN_HISTAUSSE_PACKAGE}}" --upload-file "${GITHUB_WORKSPACE}/main.pdf" "${GITHUB_SERVER_URL}/api/packages/these-android-re/generic/thesis/latest/abstract.pdf" + curl -s --show-headers --user "histausse:${{secrets.TOKEN_HISTAUSSE_PACKAGE}}" --upload-file "${GITHUB_WORKSPACE}/abstract.pdf" "${GITHUB_SERVER_URL}/api/packages/these-android-re/generic/thesis/latest/abstract.pdf" + curl -s --show-headers --user "histausse:${{secrets.TOKEN_HISTAUSSE_PACKAGE}}" -X DELETE "${GITHUB_SERVER_URL}/api/packages/these-android-re/generic/thesis/latest/slides.pdf" + curl -s --show-headers --user "histausse:${{secrets.TOKEN_HISTAUSSE_PACKAGE}}" --upload-file "${GITHUB_WORKSPACE}/slides.pdf" "${GITHUB_SERVER_URL}/api/packages/these-android-re/generic/thesis/latest/slides.pdf" -# curl -s --show-headers --user "histausse:${{secrets.TOKEN_HISTAUSSE_PACKAGE}}" --upload-file "${GITHUB_WORKSPACE}/main.pdf" "${GITHUB_SERVER_URL}/api/packages/these-android-re/generic/thesis/${GITHUB_SHA}/draft.pdf"