parent
e4db461a11
commit
391322a107
1 changed files with 6 additions and 4 deletions
|
|
@ -3,7 +3,7 @@ jobs:
|
||||||
test_checkout:
|
test_checkout:
|
||||||
runs-on: docker
|
runs-on: docker
|
||||||
container:
|
container:
|
||||||
image: ghcr.io/typst/typst:v0.13.1
|
image: ghcr.io/typst/typst:v0.14
|
||||||
steps:
|
steps:
|
||||||
- run: apk add --no-cache git curl
|
- run: apk add --no-cache git curl
|
||||||
- run: |
|
- run: |
|
||||||
|
|
@ -26,11 +26,13 @@ jobs:
|
||||||
- run: |
|
- run: |
|
||||||
cd "${GITHUB_WORKSPACE}"
|
cd "${GITHUB_WORKSPACE}"
|
||||||
/bin/typst compile --input commit=$(git rev-parse --short HEAD) --font-path /usr/share/fonts/ main.typ
|
/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: |
|
- 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}}" -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}}" --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}}" -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