All checks were successful
Build Typst PDFs (Docker) / build-typst (push) Successful in 10s
59 lines
1.7 KiB
YAML
59 lines
1.7 KiB
YAML
# .gitea/workflows/typst-build.yml
|
|
name: Build Typst PDFs (Docker)
|
|
|
|
on:
|
|
push:
|
|
branches: [ "**" ]
|
|
pull_request:
|
|
branches: [ "**" ]
|
|
|
|
env:
|
|
TYPST_SOURCE_DIR: src
|
|
BUILD_DIR: build
|
|
|
|
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: Compile Analysis 1
|
|
continue-on-error: true
|
|
with:
|
|
working-directory: ${{ env.TYPST_SOURCE_DIR }}/analysis-1
|
|
run: typst compile analysis-1.typ ${{ env.BUILD_DIR }}/analysis-1.pdf
|
|
|
|
- name: Compile Schaltungstheorie
|
|
continue-on-error: true
|
|
with:
|
|
working-directory: ${{ env.TYPST_SOURCE_DIR }}/schaltungstheorie
|
|
run: typst compile schaltungstheorie.typ ${{ env.BUILD_DIR }}/schaltungstheorie.pdf
|
|
|
|
- name: Compile LinAlg
|
|
continue-on-error: true
|
|
with:
|
|
working-directory: ${{ env.TYPST_SOURCE_DIR }}/linAlg
|
|
run: typst compile LinearAlgebra.typ ${{ env.BUILD_DIR }}/LinearAlgebra.pdf
|
|
|
|
- name: Create Gitea Release
|
|
continue-on-error: true
|
|
uses: softprops/action-gh-release@v1
|
|
with:
|
|
tag_name: ${{ steps.tag.outputs.tag }}
|
|
name: Typst PDFs ${{ steps.tag.outputs.tag }}
|
|
body: |
|
|
Automated release of Typst-generated PDFs.
|
|
|
|
Commit: ${{ github.sha }}
|
|
files: ${{ env.BUILD_DIR }}/*.pdf |