parent
e4db461a11
commit
391322a107
1 changed files with 6 additions and 4 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue