Skip to content

Kleine Änderung im Arbeitsheft #5

Kleine Änderung im Arbeitsheft

Kleine Änderung im Arbeitsheft #5

Workflow file for this run

name: Build PDF files for modified Typst sources
on:
workflow_dispatch:
push:
branches: [ main ]
env:
OUTPUT_PATH: pdf
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Filte changed typ files
uses: dorny/[email protected]
id: filter
with:
list-files: shell
filters: |
typst:
- added|modified: '*.typ'
- name: Install fish shell
if: ${{ steps.filter.outputs.typst == 'true' }}
uses: fish-actions/[email protected]
- name: Probe runner package cache
if: ${{ steps.filter.outputs.typst == 'true' }}
uses: awalsh128/cache-apt-pkgs-action@v1
with:
packages: cargo jq psutils
version: 1.0
- name: Install just from crates.io
if: ${{ steps.filter.outputs.typst == 'true' }}
uses: baptiste0928/cargo-install@v3
with:
crate: just
- name: Setup typst
if: ${{ steps.filter.outputs.typst == 'true' }}
uses: typst-community/setup-typst@v3
with:
typst-version: latest
- name: Compile PDF files
if: ${{ steps.filter.outputs.typst == 'true' }}
run: |
just compile -o {{ env.OUTPUT_PATH }} ${{ steps.filter.outputs.typst_files }}
# - name: Release package
# run: |
# mkdir -p "typst-packages/${{ env.PATH_PREFIX }}/$PKG_NAME"
# mv "out/${PKG_NAME}/${PKG_VERSION}" "typst-packages/${{ env.PATH_PREFIX }}/${PKG_NAME}"
# rmdir "out/${PKG_NAME}"
# rmdir out
# GIT_USER_NAME="$(git log -1 --pretty=format:'%an')"
# GIT_USER_EMAIL="$(git log -1 --pretty=format:'%ae')"
# cd typst-packages
# git config user.name "${GIT_USER_NAME}"
# git config user.email "${GIT_USER_EMAIL}"
# git checkout -b "${PKG_NAME}-${PKG_VERSION}"
# git add .
# git commit -m "${PKG_NAME}:${PKG_VERSION}"
# git push --set-upstream origin "${PKG_NAME}-${PKG_VERSION}"