diff --git a/.gitea/workflows/build-pdf.yml b/.gitea/workflows/build-pdf.yml index 6a9720a..e28fe19 100644 --- a/.gitea/workflows/build-pdf.yml +++ b/.gitea/workflows/build-pdf.yml @@ -16,12 +16,21 @@ jobs: - name: Checkout Repository uses: actions/checkout@v4 - # 2. Set up Typst CLI and compile the PDF + # 2. Download and extract the latest Typst Binary (No installation required) + - name: Download Latest Typst + run: | + cd docs/lora/ + curl -L -o typst.tar.gz https://github.com/typst/typst/releases/latest/download/typst-x86_64-unknown-linux-musl.tar.gz + tar -xzf typst.tar.gz --strip-components=1 + chmod +x ./typst + + # 3. Compile the PDF using the local binary - name: Compile Typst Documents run: | - ls -la docs/lora/ - /snap/bin/typst compile docs/lora/foxmesh-protocol.typ docs/lora/FoxMesh_Protocol.pdf - /snap/bin/typst compile docs/lora/foxmesh-protocol_de.typ docs/lora/FoxMesh_Protocol_de.pdf + cd docs/lora/ + ls -la + ./typst compile foxmesh-protocol.typ FoxMesh_Protocol.pdf + ./typst compile foxmesh-protocol_de.typ FoxMesh_Protocol_de.pdf # 3. Upload PDF as a Gitea artifact (runs on every push to main) - name: Upload PDF Artifact