From e7a46aa2a9c361339ad909e5d5497b9711a0cd60 Mon Sep 17 00:00:00 2001 From: Jean-Marie Mineau Date: Wed, 25 Jun 2025 14:10:04 +0200 Subject: [PATCH] CI --- .forgejo/workflows/publish.yaml | 6 ++---- README.md | 5 ++++- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.forgejo/workflows/publish.yaml b/.forgejo/workflows/publish.yaml index 603cd74..412176d 100644 --- a/.forgejo/workflows/publish.yaml +++ b/.forgejo/workflows/publish.yaml @@ -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" diff --git a/README.md b/README.md index 4c7f7f9..ed23f0b 100644 --- a/README.md +++ b/README.md @@ -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: ``` 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