diff --git a/.forgejo/workflows/publish.yaml b/.forgejo/workflows/publish.yaml index bcb6f71..3936f66 100644 --- a/.forgejo/workflows/publish.yaml +++ b/.forgejo/workflows/publish.yaml @@ -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"