All checks were successful
Build Typst PDFs (Docker) / build-typst (push) Successful in 10s
52 lines
1.5 KiB
YAML
52 lines
1.5 KiB
YAML
# .gitea/workflows/typst-build.yml
|
|
name: Build Typst PDFs (Docker)
|
|
|
|
on:
|
|
push:
|
|
branches: [ "**" ]
|
|
pull_request:
|
|
branches: [ "**" ]
|
|
|
|
jobs:
|
|
build-typst:
|
|
runs-on: ubuntu-latest
|
|
|
|
# Run the whole job inside a Docker container that has Typst installed
|
|
steps:
|
|
- uses: typst-community/setup-typst@v4
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v4
|
|
with:
|
|
fetch-depth: 1
|
|
submodules: false
|
|
lfs: false
|
|
|
|
- name: Debug Ls
|
|
run: ls -la "$PWD" && echo "$PWD && echo ${{ github.workspace }}"
|
|
|
|
- name: Make build directory
|
|
run: mkdir -p build
|
|
|
|
- name: Compile Analysis1
|
|
continue-on-error: true
|
|
run: typst compile --root src src/cheatsheets/Analysis1.typ "build/Analysis1.pdf"
|
|
|
|
- name: Compile Schaltungstheorie
|
|
continue-on-error: true
|
|
run: typst compile --root src src/cheatsheets/Schaltungstheorie.typ "build/Schaltungstheorie.pdf"
|
|
|
|
- name: Compile LinAlg
|
|
continue-on-error: true
|
|
run: typst compile --root src src/cheatsheets/LinearAlgebra.typ "build/LinearAlgebra.pdf"
|
|
|
|
- name: Create Gitea Release
|
|
continue-on-error: true
|
|
uses: akkuman/gitea-release-action@v1
|
|
with:
|
|
name: "Formelsammlungen PDFs"
|
|
tag_name: "latest"
|
|
files: build/*.pdf
|
|
|
|
- name: Trigger
|
|
continue-on-error: true
|
|
run: curl -u trigger:${{ secrets.TRIGGER_PASSWORD }} -X POST https://trigger.typst4ei.de/trigger/all |